URL: https://github.com/freeipa/freeipa/pull/4987
Author: rcritten
 Title: #4987: [Backport][ipa-4-8] ipatests: fix 
test_ipahealthcheck.py::TestIpaHealthCheck
Action: opened

PR body:
"""
This PR was opened automatically because PR #4984 was pushed to master and 
backport to ipa-4-8 is required.
"""

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/4987/head:pr4987
git checkout pr4987
From 87f1d5ad9ee5ad1be829fb3da35162503631a0bd Mon Sep 17 00:00:00 2001
From: Florence Blanc-Renaud <f...@redhat.com>
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
---
 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 7818cab3eb..6adb6c463b 100644
--- a/ipatests/test_integration/test_ipahealthcheck.py
+++ b/ipatests/test_integration/test_ipahealthcheck.py
@@ -799,7 +799,7 @@ def execute_expiring_check(check):
             )
 
             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":
_______________________________________________
FreeIPA-devel mailing list -- freeipa-devel@lists.fedorahosted.org
To unsubscribe send an email to freeipa-devel-le...@lists.fedorahosted.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedorahosted.org/archives/list/freeipa-devel@lists.fedorahosted.org

Reply via email to