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
2021-03-04 10:35:15 +01:00
committed by Florence Blanc-Renaud
parent acf31d043f
commit b9b7175dbd

View File

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