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