From: Mark Andrews Date: Tue, 4 Jul 2023 07:39:29 +0000 (+1000) Subject: Check EDNS EXPIRE is returned with AXFR X-Git-Tag: v9.19.17~25^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cf03b1ed952d500cb34eb68dcf6105374fa1c5c5;p=thirdparty%2Fbind9.git Check EDNS EXPIRE is returned with AXFR --- diff --git a/bin/tests/system/xfer/tests.sh b/bin/tests/system/xfer/tests.sh index 6595927e7ee..cd1a50a3e4f 100755 --- a/bin/tests/system/xfer/tests.sh +++ b/bin/tests/system/xfer/tests.sh @@ -464,7 +464,15 @@ $DIGCMD nil. TXT | grep 'SOA mismatch AXFR' >/dev/null && { } n=$((n+1)) -echo_i "check that we ask for and get a EDNS EXPIRE response ($n)" +echo_i "check that we ask for and got a EDNS EXPIRE response when transfering from a secondary ($n)" +tmp=0 +msg="zone edns-expire/IN: zone transfer finished: success, expire=1814[0-4][0-9][0-9]" +grep "$msg" ns7/named.run > /dev/null || tmp=1 +[ "$tmp" -ne 0 ] && echo_i "failed" +status=$((status+tmp)) + +n=$((n+1)) +echo_i "check that we ask for and get a EDNS EXPIRE response when refreshing ($n)" # force a refresh query $RNDCCMD 10.53.0.7 refresh edns-expire 2>&1 | sed 's/^/ns7 /' | cat_i sleep 10