From b1fef6b80a2102b2a28ab33e84e1bb827fddeeac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Cami?= Date: Thu, 4 Mar 2021 10:35:15 +0100 Subject: [PATCH] ipatests: hidden replica: use dns_update_system_records MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use dns_update_system_records after restoring the replica to force-update the DNS records. 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 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ipatests/test_integration/test_replica_promotion.py b/ipatests/test_integration/test_replica_promotion.py index 80fb2184a..e4cbc24e6 100644 --- a/ipatests/test_integration/test_replica_promotion.py +++ b/ipatests/test_integration/test_replica_promotion.py @@ -954,6 +954,10 @@ class TestHiddenReplicaPromotion(IntegrationTest): tasks.wait_for_replication( self.replicas[0].ldap_connect() ) + tasks.dns_update_system_records(self.master) + tasks.wait_for_replication( + self.master.ldap_connect() + ) self._check_config([self.master, self.replicas[0]]) self._check_dnsrecords([self.master, self.replicas[0]]) @@ -973,6 +977,10 @@ class TestHiddenReplicaPromotion(IntegrationTest): tasks.wait_for_replication( self.replicas[0].ldap_connect() ) + tasks.dns_update_system_records(self.master) + tasks.wait_for_replication( + self.master.ldap_connect() + ) self._check_config([self.master], [self.replicas[0]]) self._check_dnsrecords([self.master], [self.replicas[0]])