ipatests: hidden replica: use dns_update_system_records

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 <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 834adfc2b1
commit b1fef6b80a
1 file changed
+8
@@ -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]])