Skip to content

Commit

Permalink
ipatests: Update ipa-adtrust-install test
Browse files Browse the repository at this point in the history
update after change in implementation of `krb_utils.get_principal()` now using GSSAPI

Related: https://pagure.io/freeipa/issue/9575

Signed-off-by: Erik Belko <ebelko@redhat.com>
Reviewed-By: Michal Polovka <mpolovka@redhat.com>
  • Loading branch information
b3lix authored and antoniotorresm committed May 21, 2024
1 parent 544652a commit 47920e7
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions ipatests/test_integration/test_adtrust_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,18 +464,15 @@ def test_adtrust_install_with_incorrect_admin_password(self):
password
"""
password = "wrong_pwd"
msg = (
"Must have Kerberos credentials to setup AD trusts on server: "
"Major (458752): No credentials were supplied, or the credentials "
"were unavailable or inaccessible, Minor (2529639053): "
"No Kerberos credentials available (default cache: KCM:)\n"
expected_substring = (
"Must have Kerberos credentials to setup AD trusts on server:"
)
self.master.run_command(["kdestroy", "-A"])
result = self.master.run_command(
["ipa-adtrust-install", "-A", "admin", "-a",
password, "-U"], raiseonerr=False
)
assert msg in result.stderr_text
assert expected_substring in result.stderr_text
assert result.returncode != 0

def test_adtrust_install_with_invalid_rid_base_value(self):
Expand Down

0 comments on commit 47920e7

Please sign in to comment.