#8668 Nightly failure in (f33+updates-testing) test_trust.py::TestTrust::test_ipa_commands_run_as_aduser
Closed: fixed by frenaud. Opened by frenaud.

The nightly test test_integration/test_trust.py::TestTrust::test_ipa_commands_run_as_aduser is failing in fedora33+updates-testing, see PR #651 with the following logs and report:

self = <ipatests.test_integration.test_trust.TestTrust object at 0x7f5e606d56d0>
    def test_ipa_commands_run_as_aduser(self):
        """Test if proper error thrown when AD user tries to run IPA commands
        Before fix the error used to implies that the ipa setup is broken.
        Fix is to throw the proper error. This test is to check that the
        error with 'Invalid credentials' thrown when AD user tries to run
        IPA commands.
        related: https://pagure.io/freeipa/issue/8163
        """
        tasks.kdestroy_all(self.master)
        ad_admin = 'Administrator@%s' % self.ad_domain
        tasks.kinit_as_user(self.master, ad_admin,
                            self.master.config.ad_admin_password)
        err_string = ('ipa: ERROR: Insufficient access: SASL(-14):'
                      ' authorization failure: Invalid credentials')
        result = self.master.run_command(['ipa', 'ping'], raiseonerr=False)
>       assert err_string in result.stderr_text
E       AssertionError: assert 'ipa: ERROR: Insufficient access: SASL(-14): authorization failure: Invalid credentials' in 'ipa: ERROR: Insufficient access:  Invalid credentials\n'
E        +  where 'ipa: ERROR: Insufficient access:  Invalid credentials\n' = <pytest_multihost.transport.SSHCommand object at 0x7f5e606d5910>.stderr_text

This is likely a consequence of 389-ds commit cc0f692, fixing #4480 (Unexpected info returned to ldap request).

The test needs to be adapted.


Metadata Update from @frenaud:
- Issue assigned to frenaud

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

master:

  • 4a3a39f59fcbe9e6372bc399fef008b882db99f8 ipatests: fix expected errmsg in TestTrust::test_ipa_commands_run_as_aduser

Issue linked to bugzilla: Bug 1915471

Metadata Update from @frenaud:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1915471

ipa-4-9:

  • bd3bad88ee4d4535416ad5fc5f97b55a939534ef ipatests: fix expected errmsg in TestTrust::test_ipa_commands_run_as_aduser

ipa-4-8:

  • ba8d4405dc8d8289d4e47fd775285b6857ca8e0c ipatests: fix expected errmsg in TestTrust::test_ipa_commands_run_as_aduser

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

Metadata