]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
check that example/DS is not fetched when validating a.example
authorMark Andrews <marka@isc.org>
Mon, 3 Jun 2019 01:44:18 +0000 (11:44 +1000)
committerMark Andrews <marka@isc.org>
Fri, 2 Aug 2019 06:52:57 +0000 (16:52 +1000)
(cherry picked from commit 4293a2f4bfc87b8188d69c46e2457d07ca2f5776)

bin/tests/system/dnssec/tests.sh

index d07881d7fe869414fb4e419de3b0c2789689ec8e..7cf27a9c53229f4206f9a61dae3012df19fee099 100644 (file)
@@ -164,6 +164,15 @@ n=`expr $n + 1`
 if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
+echo_i "checking that 'example/DS' from the referral was used in previous validation ($n)"
+ret=0
+grep "query 'example/DS/IN' approved" ns1/named.run > /dev/null && ret=1
+grep "fetch: example/DS" ns4/named.run > /dev/null && ret=1
+grep "validating example/DS: starting" ns4/named.run > /dev/null || ret=1
+n=$((n+1))
+test "$ret" -eq 0 || echo_i "failed"
+status=$((status+ret))
+
 if [ -x ${DELV} ] ; then
    ret=0
    echo_i "checking postive validation NSEC using dns_client ($n)"