#8747 Nightly failure in test_sssd.py::TestSSSDWithAdTrust::test_is_user_filtered
Closed: fixed 3 years ago by frenaud. Opened 3 years ago by frenaud.

The nightly test test_sssd.py::TestSSSDWithAdTrust::test_is_user_filtered is failing in fedora33, see PR #767 [testing_master_latest] with the following logs and report:

self = <ipatests.test_integration.test_sssd.TestSSSDWithAdTrust object at 0x7f5c1ab84a60>
user = 'ad'

    @pytest.mark.xfail(
        osinfo.id == 'fedora' and osinfo.version_number <= (29,),
        reason='https://pagure.io/SSSD/sssd/issue/3978')
    @pytest.mark.parametrize('user', ['ad', 'fakeuser'])
    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 [testuser@ad.test] in data provider' in b"(2021-03-11  6:25:31): [nss] [accept_fd_handler] (0x0400): Client [0x557d1f0b16c0][26] connected!\n(2021-03-11  6:25... (0x1000): Domain child.ad.test is Active\n(2021-03-11  6:25:31): [nss] [client_recv] (0x0200): Client disconnected!\n"
E            +  where b'Looking up [testuser@ad.test] in data provider' = <built-in method encode of str object at 0x7f5c1ae24d50>()
E            +    where <built-in method encode of str object at 0x7f5c1ae24d50> = 'Looking up [testuser@ad.test] in data provider'.encode

The test is using: sssd-client-2.4.2-2.fc33.x86_64

Metadata Update from @frenaud:
- Issue tagged with: tracker

3 years ago

Metadata Update from @frenaud:
- Issue assigned to frenaud

3 years ago

Metadata Update from @frenaud:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/5639

3 years ago

According to https://github.com/SSSD/sssd/issues/5533#issuecomment-797595821 the test needs to be updated, the filter_users=... parameter must be set in the [nss] section of sssd.conf instead of [domain/...] section.

master:

  • 6d39ef7 ipatests: filter_users belongs to nss section

ipa-4-8:

  • fb1ae1e ipatests: filter_users belongs to nss section

ipa-4-9:

  • 5221f4c ipatests: filter_users belongs to nss section

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

3 years ago

Log in to comment on this ticket.

Metadata