mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-11-02 20:30:26 -06:00
tests: Add new ipa-ca error messages to IPADNSSystemRecordsCheck
freeipa-healthcheck changed some messages related to ipa-ca DNS record validation in IPADNSSystemRecordsCheck. Include support for it and retain backwards compatibility. Fixes: https://pagure.io/freeipa/issue/9291 Signed-off-by: Rob Crittenden <rcritten@redhat.com> Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
This commit is contained in:
1 parent
ff31b0c40c
commit
6ca119686a
1 file changed
+15
-6
@@ -1614,12 +1614,21 @@ class TestIpaHealthCheckWithoutDNS(IntegrationTest):
|
||||
Test checks the result of IPADNSSystemRecordsCheck
|
||||
when ipa-server is configured without DNS.
|
||||
"""
|
||||
expected_msgs = {
|
||||
"Expected SRV record missing",
|
||||
"Got {count} ipa-ca A records, expected {expected}",
|
||||
"Got {count} ipa-ca AAAA records, expected {expected}",
|
||||
"Expected URI record missing",
|
||||
}
|
||||
version = tasks.get_healthcheck_version(self.master)
|
||||
if (parse_version(version) < parse_version('0.12')):
|
||||
expected_msgs = {
|
||||
"Expected SRV record missing",
|
||||
"Got {count} ipa-ca A records, expected {expected}",
|
||||
"Got {count} ipa-ca AAAA records, expected {expected}",
|
||||
"Expected URI record missing",
|
||||
}
|
||||
else:
|
||||
expected_msgs = {
|
||||
"Expected SRV record missing",
|
||||
"Unexpected ipa-ca address {ipaddr}",
|
||||
"expected ipa-ca to contain {ipaddr} for {server}",
|
||||
"Expected URI record missing",
|
||||
}
|
||||
|
||||
tasks.install_packages(self.master, HEALTHCHECK_PKG)
|
||||
returncode, data = run_healthcheck(
|
||||
|
||||
Reference in new issue
Block a user