From d5ee7528b2253fb52c1f533195ec4294bd91856f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Cami?= Date: Thu, 4 Mar 2021 08:54:06 +0100 Subject: [PATCH] ipatests: hiddenreplica: use wait_for_ipa_to_start after restore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-By: Florence Blanc-Renaud Reviewed-By: Rob Crittenden Reviewed-By: Mohammad Rizwan Yusuf --- 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 846913c8a..84c03de15 100644 --- a/ipatests/test_integration/test_replica_promotion.py +++ b/ipatests/test_integration/test_replica_promotion.py @@ -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])