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 2021-03-04 08:54:06 +01:00 committed by Florence Blanc-Renaud
parent d02ec40901
commit d5ee7528b2

View File

@ -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])