]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Avoid false positive in serve-stale system test check
authorTom Krizek <tkrizek@isc.org>
Tue, 13 Jun 2023 08:52:01 +0000 (10:52 +0200)
committerTom Krizek <tkrizek@isc.org>
Tue, 13 Jun 2023 12:16:44 +0000 (14:16 +0200)
The purpose of the check is to verify the server has survived the
previous barrage of queries. This is done by sending a query and
checking we get a NOERROR response back.

Previously, that query could've been affected by a servfail cache - the
server would return a SERVFAIL answer, thus failing the check, despite
being up and running. Use version.bind txt ch query to avoid the
interference of servfail cache.

(cherry picked from commit dd7bcd2855888969778910deaac47aa54786c877)

bin/tests/system/serve-stale/tests.sh

index 104ae051adf78e95159e38d1f7661581bfdbec13..e1bb645de29d778e1a418e91e9bb6738827aeb96 100755 (executable)
@@ -1784,7 +1784,7 @@ while [ $num -lt 20 ]; do
     num=$((num+1))
 done;
 _dig_data() {
-    $DIG -p ${PORT} @10.53.0.3 data.example TXT >dig.out.test$n || return 1
+    $DIG -p ${PORT} @10.53.0.3 version.bind txt ch >dig.out.test$n || return 1
     grep "status: NOERROR" dig.out.test$n > /dev/null || return 1
 }
 retry_quiet 5 _dig_data || ret=1