DNSSEC CI: wait until DS records is replicated

In some cases replication may take much more time than we expected. This
patch adds explicit cech if DS records has been replicated.

Reviewed-By: Petr Spacek <pspacek@redhat.com>
This commit is contained in:
Martin Basti 2015-10-16 14:09:37 +02:00
parent ccae42beda
commit f2032ca2ca

View File

@ -350,6 +350,12 @@ class TestInstallDNSSECFirst(IntegrationTest):
self.master.run_command(args) self.master.run_command(args)
# wait until DS records it replicated
assert wait_until_record_is_signed(
self.replicas[0].ip, example_test_zone, self.log, timeout=100,
rtype="DS"
), "No DS record of '%s' returned from replica" % example_test_zone
# extract DSKEY from root zone # extract DSKEY from root zone
ans = resolve_with_dnssec(self.master.ip, root_zone, self.log, ans = resolve_with_dnssec(self.master.ip, root_zone, self.log,
rtype="DNSKEY") rtype="DNSKEY")