#9816 Nightly test failure in test_integration/test_netgroup.py
Opened by mpolovka. Modified

The nightly test test_integration/test_netgroup.py::TestNetgroups::test_remove_nested_netgroup is failing in master - Nightly-latest-fipswith an error

    def check_users_in_netgroups(self):
        """Check if users are in groups, no nested things"""
        master = self.master
        clear_sssd_cache(master)
        for d in test_data:
            result = master.run_command(['getent', 'passwd',
                                         d['user']['login']], raiseonerr=False)
>           assert result.returncode == 0
E           assert 2 == 0
E            +  where 2 = <pytest_multihost.transport.SSHCommand object at 0x7fab2598ea50>.returncode
d          = {'nested_netgroup': None, 'netgroup': 'testgroup_0', 'netgroup_nested_members': ['testuser_0'], 'user': {'first': 'Test_0', 'last': 'User_0', 'login': 'testuser_0'}}
master     = <ipatests.pytest_ipa.integration.host.Host master.ufreeipa.test (master)>
result     = <pytest_multihost.transport.SSHCommand object at 0x7fab2598ea50>
self       = <ipatests.test_integration.test_netgroup.TestNetgroups object at 0x7fab25991310>
test_integration/test_netgroup.py:73: AssertionError

associated log:

INFO     ipatests.pytest_ipa.integration.host.Host.master.IPAOpenSSHTransport:transport.py:391 RUN ['getent', 'passwd', 'testuser_0']
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd122:transport.py:513 RUN ['getent', 'passwd', 'testuser_0']
DEBUG    ipatests.pytest_ipa.integration.host.Host.master.cmd122:transport.py:217 Exit code: 2

return code 2 from getent means One or more supplied key could not be found in the database..

report, run


Metadata