From ab9ef13f278bf02fc018e20a4aefb20976049e71 Mon Sep 17 00:00:00 2001 From: Florence Blanc-Renaud Date: Nov 09 2020 21:05:43 +0000 Subject: 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 --- diff --git a/ipatests/test_integration/test_ipahealthcheck.py b/ipatests/test_integration/test_ipahealthcheck.py index 63f5bd7..350d7f2 100644 --- a/ipatests/test_integration/test_ipahealthcheck.py +++ b/ipatests/test_integration/test_ipahealthcheck.py @@ -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): """