From 17fdff8f2f1664a387147e13a851bc1248abc29c Mon Sep 17 00:00:00 2001 From: Florence Blanc-Renaud Date: Mon, 19 May 2025 09:56:36 +0200 Subject: [PATCH] ipatests: test_manual_renewal_master_transfer must wait for replication The test is transferring the CA renewal role from master to replica. It calls ipa config-mod on the replica then checks with ipa config-show on the master. Wait for replication to complete between the 2 steps. Fixes: https://pagure.io/freeipa/issue/9790 Signed-off-by: Florence Blanc-Renaud Reviewed-By: Rob Crittenden --- ipatests/test_integration/test_replica_promotion.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ipatests/test_integration/test_replica_promotion.py b/ipatests/test_integration/test_replica_promotion.py index c754cef88cb275987f5afdaad43f2ea07e3b7476..3c67833d3101aef095539953e04c31d028c746d3 100644 --- a/ipatests/test_integration/test_replica_promotion.py +++ b/ipatests/test_integration/test_replica_promotion.py @@ -417,6 +417,9 @@ class TestRenewalMaster(IntegrationTest): replica = self.replicas[0] replica.run_command(['ipa', 'config-mod', '--ca-renewal-master-server', replica.hostname]) + # wait for replication to complete before checking on the master + tasks.wait_for_replication(replica.ldap_connect()) + result = self.master.run_command(["ipa", "config-show"]).stdout_text assert("IPA CA renewal master: %s" % replica.hostname in result), ( "Replica hostname not found among CA renewal masters" -- 2.49.0