mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-26 16:16:31 -06:00
Check that CADogtagCertsConfigCheck can handle cert renewal
Renewal causes two certs to have the same nickname. Dogtag is patched to allow for N certs with the same nickname, and this test is to verify that CADogtagCertsConfigCheck still passes. Related: https://github.com/dogtagpki/pki/pull/4285 Signed-off-by: Chris Kelley <ckelley@redhat.com> Reviewed-By: Rob Crittenden <rcritten@redhat.com> Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
This commit is contained in:
parent
a2667b249e
commit
614d3bd9c0
@ -1406,6 +1406,23 @@ class TestIpaHealthCheck(IntegrationTest):
|
||||
expected_permissions="0600"
|
||||
)
|
||||
|
||||
def test_ipa_healthcheck_renew_internal_cert(self):
|
||||
"""
|
||||
This testcase checks that CADogtagCertsConfigCheck can handle
|
||||
cert renewal, when there can be two certs with the same nickname
|
||||
"""
|
||||
if (tasks.get_pki_version(self.master) < tasks.parse_version('11.4.0')):
|
||||
raise pytest.skip("PKI known issue #2022561")
|
||||
self.master.run_command(['ipa-cacert-manage', 'renew', '--self-signed'])
|
||||
returncode, data = run_healthcheck(
|
||||
self.master,
|
||||
"pki.server.healthcheck.meta.csconfig",
|
||||
"CADogtagCertsConfigCheck",
|
||||
)
|
||||
assert returncode == 0
|
||||
for check in data:
|
||||
assert check["result"] == "SUCCESS"
|
||||
|
||||
@pytest.fixture
|
||||
def remove_healthcheck(self):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user