mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-07-29 23:58:23 -05:00
ipatests: fix expected error message in test_commands
389ds does not return any more additional information about a failing bind (to avoid leaking information). As a consequence, when ipa-nis-manage is provided a wrong password, the error message contains less info as in the past and needs to be fixed. Fixes: https://pagure.io/freeipa/issue/8631 Reviewed-By: Kaleemullah Siddiqui <ksiddiqu@redhat.com>
This commit is contained in:
@@ -1286,17 +1286,16 @@ class TestIPACommand(IntegrationTest):
|
||||
This testcase checks if ipa-nis-manage enable
|
||||
command throws error on console for invalid DS admin password
|
||||
"""
|
||||
msg = (
|
||||
"Insufficient access: Invalid credentials "
|
||||
"Invalid credentials\n"
|
||||
)
|
||||
msg1 = "Insufficient access: "
|
||||
msg2 = "Invalid credentials"
|
||||
result = self.master.run_command(
|
||||
["ipa-nis-manage", "enable"],
|
||||
stdin_text='Invalid_pwd',
|
||||
raiseonerr=False,
|
||||
)
|
||||
assert result.returncode == 1
|
||||
assert msg in result.stderr_text
|
||||
assert msg1 in result.stderr_text
|
||||
assert msg2 in result.stderr_text
|
||||
|
||||
def test_pkispawn_log_is_present(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user