From bf9797f27b519049dc1462e399740d8b902dde9f Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Feb 01 2023 10:00:57 +0000 Subject: tests: Add ipa_ca_name checking to DNS system records freeipa-healthcheck 0.12 includes a SUCCESS message if the ipa-ca records are as expected so a user will know they were checked. For that version and beyond test that it is included. Related: https://pagure.io/freeipa/issue/9291 Signed-off-by: Rob Crittenden Reviewed-By: Florence Blanc-Renaud --- diff --git a/ipatests/test_integration/test_ipahealthcheck.py b/ipatests/test_integration/test_ipahealthcheck.py index 49a5779..94b0db0 100644 --- a/ipatests/test_integration/test_ipahealthcheck.py +++ b/ipatests/test_integration/test_ipahealthcheck.py @@ -810,7 +810,9 @@ class TestIpaHealthCheck(IntegrationTest): + [str(ip) for ip in resolve_ip_addresses_nss(h.external_hostname)] ] SYSTEM_RECORDS.append(f'"{self.master.domain.realm.upper()}"') - + version = tasks.get_healthcheck_version(self.master) + if parse_version(version) >= parse_version("0.12"): + SYSTEM_RECORDS.append('ipa_ca_check') returncode, data = run_healthcheck( self.master,