|
|
0fcb1e |
From 6ca119686aadfa72c0474f72758b63cd671952d4 Mon Sep 17 00:00:00 2001
|
|
|
0fcb1e |
From: Rob Crittenden <rcritten@redhat.com>
|
|
|
0fcb1e |
Date: Mon, 30 Jan 2023 12:00:03 -0500
|
|
|
0fcb1e |
Subject: [PATCH] tests: Add new ipa-ca error messages to
|
|
|
0fcb1e |
IPADNSSystemRecordsCheck
|
|
|
0fcb1e |
|
|
|
0fcb1e |
freeipa-healthcheck changed some messages related to ipa-ca
|
|
|
0fcb1e |
DNS record validation in IPADNSSystemRecordsCheck. Include support
|
|
|
0fcb1e |
for it and retain backwards compatibility.
|
|
|
0fcb1e |
|
|
|
0fcb1e |
Fixes: 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 |
.../test_integration/test_ipahealthcheck.py | 21 +++++++++++++------
|
|
|
0fcb1e |
1 file changed, 15 insertions(+), 6 deletions(-)
|
|
|
0fcb1e |
|
|
|
0fcb1e |
diff --git a/ipatests/test_integration/test_ipahealthcheck.py b/ipatests/test_integration/test_ipahealthcheck.py
|
|
|
0fcb1e |
index 94b0db0b7869e722955e232e1dddb26a2dc3d41e..47f64f2cb36904ef61211423de7cf33d21a199c3 100644
|
|
|
0fcb1e |
--- a/ipatests/test_integration/test_ipahealthcheck.py
|
|
|
0fcb1e |
+++ b/ipatests/test_integration/test_ipahealthcheck.py
|
|
|
0fcb1e |
@@ -1614,12 +1614,21 @@ class TestIpaHealthCheckWithoutDNS(IntegrationTest):
|
|
|
0fcb1e |
Test checks the result of IPADNSSystemRecordsCheck
|
|
|
0fcb1e |
when ipa-server is configured without DNS.
|
|
|
0fcb1e |
"""
|
|
|
0fcb1e |
- expected_msgs = {
|
|
|
0fcb1e |
- "Expected SRV record missing",
|
|
|
0fcb1e |
- "Got {count} ipa-ca A records, expected {expected}",
|
|
|
0fcb1e |
- "Got {count} ipa-ca AAAA records, expected {expected}",
|
|
|
0fcb1e |
- "Expected URI record missing",
|
|
|
0fcb1e |
- }
|
|
|
0fcb1e |
+ version = tasks.get_healthcheck_version(self.master)
|
|
|
0fcb1e |
+ if (parse_version(version) < parse_version('0.12')):
|
|
|
0fcb1e |
+ expected_msgs = {
|
|
|
0fcb1e |
+ "Expected SRV record missing",
|
|
|
0fcb1e |
+ "Got {count} ipa-ca A records, expected {expected}",
|
|
|
0fcb1e |
+ "Got {count} ipa-ca AAAA records, expected {expected}",
|
|
|
0fcb1e |
+ "Expected URI record missing",
|
|
|
0fcb1e |
+ }
|
|
|
0fcb1e |
+ else:
|
|
|
0fcb1e |
+ expected_msgs = {
|
|
|
0fcb1e |
+ "Expected SRV record missing",
|
|
|
0fcb1e |
+ "Unexpected ipa-ca address {ipaddr}",
|
|
|
0fcb1e |
+ "expected ipa-ca to contain {ipaddr} for {server}",
|
|
|
0fcb1e |
+ "Expected URI record missing",
|
|
|
0fcb1e |
+ }
|
|
|
0fcb1e |
|
|
|
0fcb1e |
tasks.install_packages(self.master, HEALTHCHECK_PKG)
|
|
|
0fcb1e |
returncode, data = run_healthcheck(
|
|
|
0fcb1e |
--
|
|
|
0fcb1e |
2.39.1
|
|
|
0fcb1e |
|