ipatests: hiddenreplica: use wait_for_ipa_to_start after restore

Use wait_for_ipa_to_start to wait until the restored replica is online.

Related: https://pagure.io/freeipa/issue/8534
Signed-off-by: François Cami <fcami@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Mohammad Rizwan Yusuf <myusuf@redhat.com>
This commit is contained in:
François Cami authored and Florence Blanc-Renaud committed 2021-04-02 09:48:49 +02:00
1 parent 18b03506d3
commit 9ad9c38ee0
1 file changed
+3
@@ -1030,6 +1030,9 @@ class TestHiddenReplicaPromotion(IntegrationTest):
stdin_text=dirman_password + '\nyes'
)
# wait for the replica to be available
tasks.wait_for_ipa_to_start(self.replicas[0])
# give replication some time
time.sleep(5)
tasks.kinit_admin(self.replicas[0])