mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-25 08:21:05 -06:00
ipatests: IPADNSSystemRecordsCheck also checks for AAAA records
With commit 02c3b27 that has been included in ipa-healthcheck 0.7, IPADNSSystemRecordsCheck also checks the presence of an AAAA record for ipa-ca. The test needs to handle this case and expect an error message for missing ipa-ca AAAA record. Fixes: https://pagure.io/freeipa/issue/8573 Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
parent
26b9a69784
commit
ab9ef13f27
@ -1239,6 +1239,7 @@ class TestIpaHealthCheckWithoutDNS(IntegrationTest):
|
||||
"""
|
||||
msg1 = "Expected SRV record missing"
|
||||
msg2 = "Got {count} ipa-ca A records, expected {expected}"
|
||||
msg3 = "Got {count} ipa-ca AAAA records, expected {expected}"
|
||||
tasks.install_packages(self.master, HEALTHCHECK_PKG)
|
||||
returncode, data = run_healthcheck(
|
||||
self.master,
|
||||
@ -1248,7 +1249,11 @@ class TestIpaHealthCheckWithoutDNS(IntegrationTest):
|
||||
assert returncode == 1
|
||||
for check in data:
|
||||
assert check["result"] == "WARNING"
|
||||
assert check["kw"]["msg"] == msg1 or check["kw"]["msg"] == msg2
|
||||
assert (
|
||||
check["kw"]["msg"] == msg1
|
||||
or check["kw"]["msg"] == msg2
|
||||
or check["kw"]["msg"] == msg3
|
||||
)
|
||||
|
||||
def test_ipa_certs_check_ipacertnsstrust(self):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user