]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
4783. [test] dnssec: 'check that NOTIFY is sent at the end of
authorMark Andrews <marka@isc.org>
Tue, 24 Oct 2017 22:21:14 +0000 (09:21 +1100)
committerMark Andrews <marka@isc.org>
Tue, 24 Oct 2017 22:21:14 +0000 (09:21 +1100)
                        NSEC3 chain generation failed' required more time
                        on some machines for the IXFR to complete. [RT #46388]

CHANGES
bin/tests/system/dnssec/tests.sh

diff --git a/CHANGES b/CHANGES
index faec7632f1b5a8b55482ed7849881ba328e820cb..1b5946851061f7bad51869185f2eaae7f4846ac0 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,7 @@
+4783.  [test]          dnssec: 'check that NOTIFY is sent at the end of
+                       NSEC3 chain generation failed' required more time
+                       on some machines for the IXFR to complete. [RT #46388]
+
 4782.  [test]          dnssec: 'checking positive and negative validation
                        with negative trust anchors' required more time to
                        complete on some machines. [RT #46386]
index dd8cee57ad4ee071a1bb85ff2e8d4e227a4543a0..abef3f9e5b1edb72e05965663b8a2adaceee0528 100644 (file)
@@ -2501,9 +2501,15 @@ do
 done;
 grep "ANSWER: 3," dig.out.ns2.test$n > /dev/null || ret=1
 if [ $ret != 0 ]; then echo "I:nsec3 chain generation not complete"; fi
-sleep 3
 $DIG $DIGOPTS +noauth +nodnssec soa nsec3chain-test @10.53.0.2 > dig.out.ns2.test$n || ret=1
-$DIG $DIGOPTS +noauth +nodnssec soa nsec3chain-test @10.53.0.3 > dig.out.ns3.test$n || ret=1
+s2=`awk '$4 == "SOA" { print $7}' dig.out.ns2.test$n`
+for i in 1 2 3 4 5 6 7 8 9 10
+do
+       $DIG $DIGOPTS +noauth +nodnssec soa nsec3chain-test @10.53.0.3 > dig.out.ns3.test$n || ret=1
+       s3=`awk '$4 == "SOA" { print $7}' dig.out.ns2.test$n`
+       test "$s2" = "$s3" && break
+       sleep 1
+done
 $PERL ../digcomp.pl dig.out.ns2.test$n dig.out.ns3.test$n || ret=1
 n=`expr $n + 1`
 if [ $ret != 0 ]; then echo "I:failed"; fi