]> 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 05:09:42 +0000 (15:09 +1000)
bin/tests/system/dnssec/tests.sh

index 6253c99d9a95fa636fae7e90e44e6f85044f95a7..a871bb7975313f7822c5ca487449fa8f004d2f50 100644 (file)
@@ -184,6 +184,15 @@ n=$((n+1))
 test "$ret" -eq 0 || echo_i "failed"
 status=$((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 positive validation NSEC using dns_client ($n)"