From: Aram Sargsyan Date: Thu, 12 Sep 2024 12:39:14 +0000 (+0000) Subject: Update the statistics channel check in the forward system test X-Git-Tag: v9.21.2~37^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=136ed023fd9ae668eaef732986c9448f68172774;p=thirdparty%2Fbind9.git Update the statistics channel check in the forward system test Check that the ForwardOnlyFail increases as expected. --- diff --git a/bin/tests/system/forward/tests.sh b/bin/tests/system/forward/tests.sh index 7a31febb25d..f2d4c827b1f 100644 --- a/bin/tests/system/forward/tests.sh +++ b/bin/tests/system/forward/tests.sh @@ -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))