Drill command sometimes fail on replica due to long replication time,
this patch adding check that waits until record is replicated.
Patch attached.
From bce95f9d16fd3a920ca50952be75022d89682699 Mon Sep 17 00:00:00 2001
From: Martin Basti <mba...@redhat.com>
Date: Fri, 16 Oct 2015 14:09:37 +0200
Subject: [PATCH] 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.
---
ipatests/test_integration/test_dnssec.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/ipatests/test_integration/test_dnssec.py b/ipatests/test_integration/test_dnssec.py
index 66e67a6efbe1db767f8b7102d2928be775e723af..5d6acb7cc0d843929fd23e5a07f37803cbfdb792 100644
--- a/ipatests/test_integration/test_dnssec.py
+++ b/ipatests/test_integration/test_dnssec.py
@@ -350,6 +350,12 @@ class TestInstallDNSSECFirst(IntegrationTest):
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
ans = resolve_with_dnssec(self.master.ip, root_zone, self.log,
rtype="DNSKEY")
--
2.4.3
--
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code