On 25.01.2016 13:29, Martin Basti wrote:


On 23.01.2016 10:34, Petr Spacek wrote:
On 22.1.2016 17:47, Martin Basti wrote:
- # make BIND happy, and delegate zone which contains A record of master
+        # make BIND happy: add the glue record and delegate zone
+        args = [
+ "ipa", "dnsrecord-add", root_zone, self.master.domain.name,
+            "--a-rec=" + self.master.ip
+        ]
+        self.master.run_command(args)
+ time.sleep(10) # sleep a bit until data are provided by bind-dyndb-ldap
+
LGTM, ACK. In the worst case it will not fix the test :-)

Pushed to:
ipa-4-3: 47422b0f3913e352cd28cac24128afed178701e8
master: cdf08a0a869f83a6111d9560b69c582d2c04f89c


Here is better fix that should actually work in lab :)
patch attached

From 253d18ec54f7a9612f482c6d44de4bd337d2ad9e Mon Sep 17 00:00:00 2001
From: Martin Basti <mba...@redhat.com>
Date: Thu, 28 Jan 2016 14:13:51 +0100
Subject: [PATCH] DNSSEC CI: fix zone delegations

---
 ipatests/test_integration/test_dnssec.py | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/ipatests/test_integration/test_dnssec.py b/ipatests/test_integration/test_dnssec.py
index 111d39855b399e52052716cd83da8dfb2213fbee..e90fb1f477ab50050f619399ee168c0e4b248ac2 100644
--- a/ipatests/test_integration/test_dnssec.py
+++ b/ipatests/test_integration/test_dnssec.py
@@ -277,7 +277,7 @@ class TestInstallDNSSECFirst(IntegrationTest):
 
         # make BIND happy: add the glue record and delegate zone
         args = [
-            "ipa", "dnsrecord-add", root_zone, self.master.domain.name,
+            "ipa", "dnsrecord-add", root_zone, self.master.hostname,
             "--a-rec=" + self.master.ip
         ]
         self.master.run_command(args)
@@ -313,6 +313,13 @@ class TestInstallDNSSECFirst(IntegrationTest):
 
         self.master.run_command(args)
 
+        # delegation
+        args = [
+            "ipa", "dnsrecord-add", root_zone, example_test_zone,
+            "--ns-rec=" + self.master.hostname
+        ]
+        self.master.run_command(args)
+
         # wait until zone is signed
         assert wait_until_record_is_signed(
             self.master.ip, example_test_zone, self.log, timeout=100
-- 
2.5.0

-- 
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

Reply via email to