From d8d4c5507bd3784d323e6836ff8456ba9608f115 Mon Sep 17 00:00:00 2001 From: Florence Blanc-Renaud Date: Fri, 20 Sep 2024 09:36:41 +0200 Subject: [PATCH] test_ipahealthcheck: skip connectivity_and_data check PKI removed the clones.check connectivity_and_data check in 11.5 and master branches. Skip the test depending on PKI version. The most recent version on 11.5 is 11.5.4 and still contains the check, hence skipping if version >= 11.5.5. Fixes: https://pagure.io/freeipa/issue/9668 Signed-off-by: Florence Blanc-Renaud Reviewed-By: Rob Crittenden --- ipatests/test_integration/test_ipahealthcheck.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ipatests/test_integration/test_ipahealthcheck.py b/ipatests/test_integration/test_ipahealthcheck.py index a3e10b04487f0a12fdde19a8d1971a09f7d79b63..cc51a5a6a62fbc50927fc2fc51f129a069e70b69 100644 --- a/ipatests/test_integration/test_ipahealthcheck.py +++ b/ipatests/test_integration/test_ipahealthcheck.py @@ -1219,6 +1219,9 @@ class TestIpaHealthCheck(IntegrationTest): This testcase checks that when ClonesConnectivyAndDataCheck is run it doesn't display source not found error """ + if (tasks.get_pki_version( + self.master) >= tasks.parse_version('11.5.5')): + raise pytest.skip("PKI dropped ClonesConnectivyAndDataCheck") error_msg = ( "Source 'pki.server.healthcheck.clones.connectivity_and_data' " "not found" -- 2.47.1