ipatests: fix healthcheck test without DNS
ipa-healthcheck has added a new check for ipa-ca record missing. The test needs to be adapted to handle the new check. Fixes: https://pagure.io/freeipa/issue/9459 Signed-off-by: Florence Blanc-Renaud <flo@redhat.com> Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
1 parent
b22605ee54
commit
f9075f9f77
1 file changed
+7
-1
@@ -1640,13 +1640,19 @@ class TestIpaHealthCheckWithoutDNS(IntegrationTest):
|
||||
"Got {count} ipa-ca AAAA records, expected {expected}",
|
||||
"Expected URI record missing",
|
||||
}
|
||||
else:
|
||||
elif (parse_version(version) < parse_version('0.13')):
|
||||
expected_msgs = {
|
||||
"Expected SRV record missing",
|
||||
"Unexpected ipa-ca address {ipaddr}",
|
||||
"expected ipa-ca to contain {ipaddr} for {server}",
|
||||
"Expected URI record missing",
|
||||
}
|
||||
else:
|
||||
expected_msgs = {
|
||||
"Expected SRV record missing",
|
||||
"Expected URI record missing",
|
||||
"missing IP address for ipa-ca server {server}",
|
||||
}
|
||||
|
||||
tasks.install_packages(self.master, HEALTHCHECK_PKG)
|
||||
returncode, data = run_healthcheck(
|
||||
|
||||
Reference in new issue
Block a user