mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-11-02 08:59:57 -06:00
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 <flo@redhat.com> Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
1 parent
6329c3703a
commit
089e813bf4
1 file changed
+3
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user