Skip to content

Commit 9ed9262

Browse files
Tests: Update test_0003_ad_parameters_junk_domain_invalid_keytab
Change 684e568 added a code path that sets the realm to the AD domain name if the keytab is invalid. This changes the expected log message "Selected realm:" on sssd 2.12+. Reviewed-by: Shridhar Gadekar <sgadekar@redhat.com>
1 parent 44b938a commit 9ed9262

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/tests/multihost/ad/test_adparameters_ported.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,10 @@ def test_0003_ad_parameters_junk_domain_invalid_keytab(
467467
# Evaluate test results
468468
assert usr_cmd.returncode == 2, f"{aduser} was unexpectedly found!"
469469
assert "No principal matching host/*@JUNK found in keytab." in logs
470-
assert "Selected realm: INVALIDDOMAIN.COM" in logs
470+
# Change 684e5683d115b67fb9ad53d7138108a7154f5d95 added a code path
471+
# that sets the realm to the AD domain name if the keytab is invalid.
472+
assert "Selected realm: INVALIDDOMAIN.COM" in logs or \
473+
f"Selected realm: {ad_realm}" in logs
471474
assert "Option krb5_realm set to JUNK" in logs
472475

473476
@staticmethod

0 commit comments

Comments
 (0)