0fcb1e
From ff31b0c40cc5e046f839b98b80bd16bb649205ac Mon Sep 17 00:00:00 2001
0fcb1e
From: Rob Crittenden <rcritten@redhat.com>
0fcb1e
Date: Mon, 30 Jan 2023 11:54:36 -0500
0fcb1e
Subject: [PATCH] tests: Add ipa_ca_name checking to DNS system records
0fcb1e
0fcb1e
freeipa-healthcheck 0.12 includes a SUCCESS message if the
0fcb1e
ipa-ca records are as expected so a user will know they
0fcb1e
were checked. For that version and beyond test that it
0fcb1e
is included.
0fcb1e
0fcb1e
Related: https://pagure.io/freeipa/issue/9291
0fcb1e
0fcb1e
Signed-off-by: Rob Crittenden <rcritten@redhat.com>
0fcb1e
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
0fcb1e
---
0fcb1e
 ipatests/test_integration/test_ipahealthcheck.py | 4 +++-
0fcb1e
 1 file changed, 3 insertions(+), 1 deletion(-)
0fcb1e
0fcb1e
diff --git a/ipatests/test_integration/test_ipahealthcheck.py b/ipatests/test_integration/test_ipahealthcheck.py
0fcb1e
index 49a5779307ef05617fe9ae200f7149d120977355..94b0db0b7869e722955e232e1dddb26a2dc3d41e 100644
0fcb1e
--- a/ipatests/test_integration/test_ipahealthcheck.py
0fcb1e
+++ b/ipatests/test_integration/test_ipahealthcheck.py
0fcb1e
@@ -810,7 +810,9 @@ class TestIpaHealthCheck(IntegrationTest):
0fcb1e
             + [str(ip) for ip in resolve_ip_addresses_nss(h.external_hostname)]
0fcb1e
         ]
0fcb1e
         SYSTEM_RECORDS.append(f'"{self.master.domain.realm.upper()}"')
0fcb1e
-
0fcb1e
+        version = tasks.get_healthcheck_version(self.master)
0fcb1e
+        if parse_version(version) >= parse_version("0.12"):
0fcb1e
+            SYSTEM_RECORDS.append('ipa_ca_check')
0fcb1e
 
0fcb1e
         returncode, data = run_healthcheck(
0fcb1e
             self.master,
0fcb1e
-- 
0fcb1e
2.39.1
0fcb1e