|
|
23f808 |
From ae70afc781098b628b40894f9e0e841d3ba5b585 Mon Sep 17 00:00:00 2001
|
|
|
23f808 |
From: Rob Crittenden <rcritten@redhat.com>
|
|
|
23f808 |
Date: Tue, 6 Aug 2019 16:45:46 -0400
|
|
|
23f808 |
Subject: [PATCH 6/8] Force the KRA to be off during NSS db trust tests
|
|
|
23f808 |
|
|
|
23f808 |
This avoids the side-effect of something else enabling the KRA and that
|
|
|
23f808 |
bleeding into the test.
|
|
|
23f808 |
---
|
|
|
23f808 |
tests/test_ipa_nssdb.py | 4 +++-
|
|
|
23f808 |
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
23f808 |
|
|
|
23f808 |
diff --git a/tests/test_ipa_nssdb.py b/tests/test_ipa_nssdb.py
|
|
|
23f808 |
index 7d5664e..590401c 100644
|
|
|
23f808 |
--- a/tests/test_ipa_nssdb.py
|
|
|
23f808 |
+++ b/tests/test_ipa_nssdb.py
|
|
|
23f808 |
@@ -2,7 +2,7 @@
|
|
|
23f808 |
# Copyright (C) 2019 FreeIPA Contributors see COPYING for license
|
|
|
23f808 |
#
|
|
|
23f808 |
|
|
|
23f808 |
-from util import capture_results, CAInstance
|
|
|
23f808 |
+from util import capture_results, CAInstance, KRAInstance
|
|
|
23f808 |
from base import BaseTest
|
|
|
23f808 |
from ipahealthcheck.core import config, constants
|
|
|
23f808 |
from ipahealthcheck.ipa.plugin import registry
|
|
|
23f808 |
@@ -30,6 +30,8 @@ class TestNSSDBTrust(BaseTest):
|
|
|
23f808 |
patches = {
|
|
|
23f808 |
'ipaserver.install.cainstance.CAInstance':
|
|
|
23f808 |
Mock(return_value=CAInstance()),
|
|
|
23f808 |
+ 'ipaserver.install.krainstance.KRAInstance':
|
|
|
23f808 |
+ Mock(return_value=KRAInstance(False)),
|
|
|
23f808 |
'ipapython.certdb.unparse_trust_flags':
|
|
|
23f808 |
Mock(side_effect=my_unparse_trust_flags),
|
|
|
23f808 |
}
|
|
|
23f808 |
--
|
|
|
23f808 |
2.20.1
|
|
|
23f808 |
|