From ff5bb485d709ea02422cbafba51d23db384822af Mon Sep 17 00:00:00 2001 From: Florence Blanc-Renaud Date: Fri, 20 Dec 2024 15:45:01 +0100 Subject: [PATCH] Installation test: KRA on replica after cert renewal Add a new test installing the KRA on a replica after the KRA certs have been renewed on the master. Related: https://pagure.io/freeipa/issue/9692 Signed-off-by: Florence Blanc-Renaud Reviewed-By: Rob Crittenden --- ipatests/test_integration/test_installation.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ipatests/test_integration/test_installation.py b/ipatests/test_integration/test_installation.py index c5565c452010f23f038ddf329454b591ef09f6af..1fae472673a3934c86af2f9adc7b343c70e25b2b 100644 --- a/ipatests/test_integration/test_installation.py +++ b/ipatests/test_integration/test_installation.py @@ -1322,7 +1322,7 @@ class TestInstallMaster(IntegrationTest): class TestInstallMasterKRA(IntegrationTest): - num_replicas = 0 + num_replicas = 1 @classmethod def install(cls, mh): @@ -1379,6 +1379,14 @@ class TestInstallMasterKRA(IntegrationTest): ) assert starting_serial != int(cert.serial_number) + def test_install_replica_after_kracert_renewal(self): + """ + Test replica installation with CA after the KRA certs renewal + """ + tasks.install_replica(self.master, self.replicas[0], + setup_ca=True) + tasks.install_kra(self.replicas[0]) + class TestInstallMasterDNS(IntegrationTest): -- 2.47.1