#8667 Nightly test failure (f33+updates-testing) in test_sudo.py
Closed: duplicate 3 years ago by frenaud. Opened 3 years ago by frenaud.

The nightly test test_sudo is failing in fedora33 + updates-testing repo. See PR #644 with the following logs and report:

  • test_sudo.py::TestSudo::test_sudo_rule_restricted_to_one_hostmask:
self = <ipatests.test_integration.test_sudo.TestSudo object at 0x7efcaa773520>

    def test_sudo_rule_restricted_to_one_hostmask(self):
        if self.__class__.skip_hostmask_based:
            raise pytest.skip("Hostmask could not be detected")

        result1 = self.list_sudo_commands("testuser1")
>       assert "(ALL : ALL) NOPASSWD: ALL" in result1.stdout_text
E       AssertionError: assert '(ALL : ALL) NOPASSWD: ALL' in ''
E        +  where '' = <pytest_multihost.transport.SSHCommand object at 0x7efcaa773c10>.stdout_text
  • test_integration/test_sudo.py::TestSudo::test_sudo_rule_restricted_to_one_hostmask_negative:
self = <ipatests.test_integration.test_sudo.TestSudo object at 0x7efca8d28340>

    def test_sudo_rule_restricted_to_one_hostmask_negative(self):
        result1 = self.list_sudo_commands("testuser1")
        assert result1.returncode != 0
>       assert "Sorry, user testuser1 may not run sudo on {}.".format(
            self.clientname) in result1.stderr_text
E       AssertionError: assert 'Sorry, user testuser1 may not run sudo on client0.' in 'sudo: a password is required\n'
E        +  where 'Sorry, user testuser1 may not run sudo on client0.' = <built-in method format of str object at 0x7efcaa9fd630>('client0')
E        +    where <built-in method format of str object at 0x7efcaa9fd630> = 'Sorry, user testuser1 may not run sudo on {}.'.format
E        +    and   'client0' = <ipatests.test_integration.test_sudo.TestSudo object at 0x7efca8d28340>.clientname
E        +  and   'sudo: a password is required\n' = <pytest_multihost.transport.SSHCommand object at 0x7efca8d29940>.stderr_text

Metadata Update from @frenaud:
- Issue close_status updated to: duplicate
- Issue status updated to: Closed (was: Open)

3 years ago

Login to comment on this ticket.

Metadata