From 4a3a39f59fcbe9e6372bc399fef008b882db99f8 Mon Sep 17 00:00:00 2001 From: Florence Blanc-Renaud Date: Sun, 17 Jan 2021 12:56:04 +0100 Subject: [PATCH] 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 Reviewed-By: Sergey Orlov --- ipatests/test_integration/test_trust.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ipatests/test_integration/test_trust.py b/ipatests/test_integration/test_trust.py index 86cdcd17a..a335c780e 100644 --- a/ipatests/test_integration/test_trust.py +++ b/ipatests/test_integration/test_trust.py @@ -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)