From: Colin Vidal Date: Wed, 18 Feb 2026 15:04:04 +0000 (+0100) Subject: Simplify resolver delegation expiry test X-Git-Tag: v9.21.21~4^2~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=009fa6173d856c301a8b6e170b7cb829b199b4b0;p=thirdparty%2Fbind9.git Simplify resolver delegation expiry test Remove the dynamic NS update loop from the delegation expiry test. With the delegation DB, it is sufficient to wait for the delegation to expire (after 5 seconds) and verify that names below the removed zone return NXDOMAIN. --- diff --git a/bin/tests/system/resolver/tests.sh b/bin/tests/system/resolver/tests.sh index e9affc1cb4d..18893edd699 100755 --- a/bin/tests/system/resolver/tests.sh +++ b/bin/tests/system/resolver/tests.sh @@ -439,24 +439,15 @@ grep "status: NOERROR" dig.ns5.prime.${n} >/dev/null || { } cp ns4/tld2.db ns4/tld.db rndc_reload ns4 10.53.0.4 tld -old= for i in 0 1 2 3 4 5 6 7 8 9; do foo=0 dig_with_opts @10.53.0.5 ns$i.to-be-removed.tld A >/dev/null dig_with_opts @10.53.0.5 www.to-be-removed.tld A >dig.ns5.out.${n} grep "status: NXDOMAIN" dig.ns5.out.${n} >/dev/null || foo=1 - [ $foo = 0 ] && break - $NSUPDATE <