From d55e339df32f35e5e37aad78eebe1bdb0fd2361d Mon Sep 17 00:00:00 2001 From: Florence Blanc-Renaud Date: Tue, 4 Aug 2020 14:59:58 +0200 Subject: [PATCH] ipatests: fix test_ipahealthcheck.py::TestIpaHealthCheck test_ipa_healthcheck_expiring is assuming that it's executed on a KRA-less installation, but the test is executed after test_ipa_healthcheck_no_errors that configures the KRA. With a KRA install, 12 certs are monitored instead of 9. Fixes: https://pagure.io/freeipa/issue/8439 Reviewed-By: Rob Crittenden --- ipatests/test_integration/test_ipahealthcheck.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipatests/test_integration/test_ipahealthcheck.py b/ipatests/test_integration/test_ipahealthcheck.py index 7818cab3e..6adb6c463 100644 --- a/ipatests/test_integration/test_ipahealthcheck.py +++ b/ipatests/test_integration/test_ipahealthcheck.py @@ -799,7 +799,7 @@ class TestIpaHealthCheck(IntegrationTest): ) assert returncode == 1 - assert len(data) == 9 # non-KRA is 9 tracked certs + assert len(data) == 12 # KRA is 12 tracked certs for check in data: if check["result"] == "SUCCESS":