mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-23 15:17:01 -04:00
Update the statistics channel check in the forward system test
Check that the ForwardOnlyFail increases as expected.
This commit is contained in:
parent
00a3d91e2d
commit
136ed023fd
1 changed files with 3 additions and 2 deletions
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue