From: Mark Andrews Date: Tue, 12 Mar 2019 05:09:01 +0000 (+1100) Subject: tests/resolver: look for hash algorithm 2 (SHA-256) now X-Git-Tag: v9.15.0~6^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=42ed7e43dcf3e5bed10b5476b6d96f0c5d4ac1ee;p=thirdparty%2Fbind9.git tests/resolver: look for hash algorithm 2 (SHA-256) now --- diff --git a/bin/tests/system/resolver/tests.sh b/bin/tests/system/resolver/tests.sh index 3d32e31ad6f..6706e65675c 100755 --- a/bin/tests/system/resolver/tests.sh +++ b/bin/tests/system/resolver/tests.sh @@ -470,16 +470,16 @@ n=`expr $n + 1` echo_i "check prefetch of validated DS's RRSIG TTL is updated (${n})" ret=0 $DIG $DIGOPTS +dnssec @10.53.0.5 ds.example.net ds > dig.out.1.${n} || ret=1 -ttl1=`awk '$4 == "DS" && $7 == "1" { print $2 - 2 }' dig.out.1.${n}` +ttl1=`awk '$4 == "DS" && $7 == "2" { print $2 - 2 }' dig.out.1.${n}` # sleep so we are in prefetch range sleep ${ttl1:-0} # trigger prefetch $DIG $DIGOPTS @10.53.0.5 ds.example.net ds > dig.out.2.${n} || ret=1 -ttl1=`awk '$4 == "DS" && $7 == "1" { print $2 }' dig.out.2.${n}` +ttl1=`awk '$4 == "DS" && $7 == "2" { print $2 }' dig.out.2.${n}` sleep 1 # check that prefetch occured $DIG $DIGOPTS @10.53.0.5 ds.example.net ds +dnssec > dig.out.3.${n} || ret=1 -dsttl=`awk '$4 == "DS" && $7 == "1" { print $2 }' dig.out.3.${n}` +dsttl=`awk '$4 == "DS" && $7 == "2" { print $2 }' dig.out.3.${n}` sigttl=`awk '$4 == "RRSIG" && $5 == "DS" { print $2 }' dig.out.3.${n}` test ${dsttl:-0} -gt ${ttl2:-1} || ret=1 test ${sigttl:-0} -gt ${ttl2:-1} || ret=1