Skip to content

Commit

Permalink
ipatests: fix expected output for ipahealthcheck.ipa.host
Browse files Browse the repository at this point in the history
ipa-healthcheck commit e69589d5 changed the output when a service
keytab is missing to not report the GSSAPI error but to report
that the keytab doesn't exist at all. This distinguishes from real
Kerberos issues like kvno.

Fixes: https://pagure.io/freeipa/issue/9482

Signed-off-by: Rob Crittenden <[email protected]>
Reviewed-By: Florence Blanc-Renaud <[email protected]>
Reviewed-By: Michal Polovka <[email protected]>
  • Loading branch information
rcritten committed Nov 16, 2023
1 parent d659d21 commit f00b52c
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions ipatests/test_integration/test_ipahealthcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,9 +635,15 @@ def test_source_ipahealthcheck_ipa_host_check_ipahostkeytab(self):
ipahealthcheck.ipa.host when GSSAPI credentials cannot be obtained
from host's keytab.
"""
msg = (
"Minor (2529639107): No credentials cache found"
)
version = tasks.get_healthcheck_version(self.master)
if parse_version(version) >= parse_version("0.15"):
msg = (
"Service {service} keytab {path} does not exist."
)
else:
msg = (
"Minor (2529639107): No credentials cache found"
)

with tasks.FileBackup(self.master, paths.KRB5_KEYTAB):
self.master.run_command(["rm", "-f", paths.KRB5_KEYTAB])
Expand Down

0 comments on commit f00b52c

Please sign in to comment.