]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Update the statistics channel check in the forward system test
authorAram Sargsyan <aram@isc.org>
Thu, 12 Sep 2024 12:39:14 +0000 (12:39 +0000)
committerArаm Sаrgsyаn <aram@isc.org>
Mon, 16 Sep 2024 09:31:14 +0000 (09:31 +0000)
Check that the ForwardOnlyFail increases as expected.

bin/tests/system/forward/tests.sh

index 7a31febb25dd2ff46c4ff7bf82c9341f2b5821d0..f2d4c827b1ffbd871dde97fa548b434d32e9f803 100644 (file)
@@ -166,10 +166,11 @@ status=$((status + ret))
 
 # GL#1793
 n=$((n + 1))
-echo_i "checking that the 'serverquota' counter isn't increased because of the SERVFAIL in the previous check ($n)"
+echo_i "checking that the correct counter is increased because of the SERVFAIL in the previous check ($n)"
 ret=0
 "${CURL}" "http://10.53.0.4:${EXTRAPORT1}/json/v1" 2>/dev/null >statschannel.out.$n
-grep -F "ServerQuota" statschannel.out.$n >/dev/null && ret=1
+grep -F '"ServerQuota"' statschannel.out.$n >/dev/null && ret=1
+grep -F '"ForwardOnlyFail":1' statschannel.out.$n >/dev/null || ret=1
 if [ $ret != 0 ]; then echo_i "failed"; fi
 status=$((status + ret))