mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-22 23:23:30 -06:00
ipatests: wait for replica update in test_dns_locations
test_ipa_ca_records and test_adtrust_system_records can fail with NXDOMAIN, because it doesn't wait enough for the update on replica. It can be resolved by waiting for the update with wait_for_replication. Fixes: https://pagure.io/freeipa/issue/9504 Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
This commit is contained in:
parent
3645543670
commit
c740cb84ba
@ -534,6 +534,9 @@ class TestDNSLocations(IntegrationTest):
|
||||
|
||||
expected_servers = (self.master.ip, self.replicas[1].ip)
|
||||
|
||||
ldap = self.master.ldap_connect()
|
||||
tasks.wait_for_replication(ldap)
|
||||
|
||||
for ip in (self.master.ip, self.replicas[0].ip, self.replicas[1].ip):
|
||||
self._test_A_rec_against_server(ip, self.domain, expected_servers)
|
||||
|
||||
@ -557,6 +560,9 @@ class TestDNSLocations(IntegrationTest):
|
||||
(self.PRIO_HIGH, self.WEIGHT, DNSName(self.master.hostname)),
|
||||
)
|
||||
|
||||
ldap = self.master.ldap_connect()
|
||||
tasks.wait_for_replication(ldap)
|
||||
|
||||
for ip in (self.master.ip, self.replicas[0].ip, self.replicas[1].ip):
|
||||
self._test_SRV_rec_against_server(
|
||||
ip, self.domain, expected_servers,
|
||||
|
Loading…
Reference in New Issue
Block a user