ipatests: fix expected errmsg in TestTrust::test_ipa_commands_run_as_aduser

389ds does not return any more additional information
about a failing bind (to avoid leaking information).

As a consequence, when ipa ping is executed with an AD user
the error message contains less info as in the past and needs to be fixed.

Fixes: https://pagure.io/freeipa/issue/8668
Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Sergey Orlov <sorlov@redhat.com>
This commit is contained in:
Florence Blanc-Renaud committed 2021-01-19 10:29:20 +01:00
1 parent f9357cb986
commit 4a3a39f59f
1 file changed
+4 -3
+4 -3
View File
@@ -141,10 +141,11 @@ class TestTrust(BaseTestTrust):
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')
err_string1 = 'ipa: ERROR: Insufficient access: '
err_string2 = 'Invalid credentials'
result = self.master.run_command(['ipa', 'ping'], raiseonerr=False)
assert err_string in result.stderr_text
assert err_string1 in result.stderr_text
assert err_string2 in result.stderr_text
tasks.kdestroy_all(self.master)
tasks.kinit_admin(self.master)