#8763 Nightly test failure in test_integration/test_sssd.py/TestSSSDWithAdTrust/test_is_user_filtered
Closed: duplicate 3 years ago by frenaud. Opened 3 years ago by mpolovka.

Nightly tests
- test_integration/test_sssd.py::TestSSSDWithAdTrust::test_is_user_filtered[ad]
- test_integration/test_sssd.py::TestSSSDWithAdTrust::test_is_user_filtered[fakeuser]
are failing in [testing_ipa-4.9_latest] Nightly PR #771 with an error:

    def test_is_user_filtered(self, user):
        """No lookup in data provider from 'filter_users' config option.

        Test for https://bugzilla.redhat.com/show_bug.cgi?id=1685472
        https://bugzilla.redhat.com/show_bug.cgi?id=1724088

        When there are users in filter_users in domain section then no look
        up should be in data provider.
        """
        with self.filter_user_setup(user=user):
            log_file = '{0}/sssd_nss.log'.format(paths.VAR_LOG_SSSD_DIR)
            logsize = tasks.get_logsize(self.master, log_file)
            self.master.run_command(
                ['getent', 'passwd', self.users[user]['name']],
                ok_returncode=2)
            sssd_log = self.master.get_file_contents(log_file)[logsize:]
            dp_req = ("Looking up [{0}] in data provider".format(
                self.users[user]['name']))
>           assert not dp_req.encode() in sssd_log
E           assert not b'Looking up [some_user@some.domain] in data provider' in b"(2021-03-13 12:35:15): [nss] [accept_fd_handler] (0x0400): Client [0x557d2814c050][27] connected!\n(2021-03-13 12:35... (0x1000): Domain child.ad.test is Active\n(2021-03-13 12:35:15): [nss] [client_recv] (0x0200): Client disconnected!\n"
E            +  where b'Looking up [some_user@some.domain] in data provider' = <built-in method encode of str object at 0x7fa2fc34ec00>()
E            +    where <built-in method encode of str object at 0x7fa2fc34ec00> = 'Looking up [some_user@some.domain] in data provider'.encode

Full logs


Already reported at https://pagure.io/freeipa/issue/8747, and a fix is also already available. Closing as duplicate.

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