86091b593d
- Resolves: rhbz#2169632 Backport latest test fixes in python3-ipatests Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
37 lines
1.4 KiB
Diff
37 lines
1.4 KiB
Diff
From ff31b0c40cc5e046f839b98b80bd16bb649205ac Mon Sep 17 00:00:00 2001
|
|
From: Rob Crittenden <rcritten@redhat.com>
|
|
Date: Mon, 30 Jan 2023 11:54:36 -0500
|
|
Subject: [PATCH] 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 <rcritten@redhat.com>
|
|
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
|
|
---
|
|
ipatests/test_integration/test_ipahealthcheck.py | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/ipatests/test_integration/test_ipahealthcheck.py b/ipatests/test_integration/test_ipahealthcheck.py
|
|
index 49a5779307ef05617fe9ae200f7149d120977355..94b0db0b7869e722955e232e1dddb26a2dc3d41e 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,
|
|
--
|
|
2.39.1
|
|
|