mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipatests: Test if ipa-cert-fix renews expired certs with kra installed
This test check if ipa-cert-fix renews certs with kra certificate installed. related: https://pagure.io/freeipa/issue/7885 Signed-off-by: Mohammad Rizwan <myusuf@redhat.com> Reviewed-By: Florence Blanc-Renaud <flo@redhat.com> Reviewed-By: Anuja More <amore@redhat.com>
This commit is contained in:
committed by
Florence Blanc-Renaud
parent
f7ef6d5ab7
commit
0904bb2387
@@ -225,3 +225,28 @@ class TestIpaCertFixThirdParty(CALessBase):
|
||||
# the DS nickname is used and not a hardcoded value.
|
||||
result = self.master.run_command(['ipa-cert-fix', '-v'],)
|
||||
assert self.nickname in result.stderr_text
|
||||
|
||||
|
||||
class TestCertFixKRA(IntegrationTest):
|
||||
@classmethod
|
||||
def uninstall(cls, mh):
|
||||
# Uninstall method is empty as the uninstallation is done in
|
||||
# the fixture
|
||||
pass
|
||||
|
||||
def test_renew_expired_cert_with_kra(self, expire_cert_critical):
|
||||
"""Test if ipa-cert-fix renews expired certs with kra installed
|
||||
|
||||
This test check if ipa-cert-fix renews certs with kra
|
||||
certificate installed.
|
||||
|
||||
related: https://pagure.io/freeipa/issue/7885
|
||||
"""
|
||||
expire_cert_critical(self.master, setup_kra=True)
|
||||
|
||||
# check if all subsystem cert expired
|
||||
check_status(self.master, 11, "CA_UNREACHABLE")
|
||||
|
||||
self.master.run_command(['ipa-cert-fix', '-v'], stdin_text='yes\n')
|
||||
|
||||
check_status(self.master, 12, "MONITORING")
|
||||
|
||||
Reference in New Issue
Block a user