Commit bcf37a11 authored by Naoki Kambe's avatar Naoki Kambe
Browse files

[trac930] add changes because query counter names described in the specfile are changed.

parent a142fa63
......@@ -24,6 +24,10 @@ SYSTEMTESTTOP=..
status=0
n=0
# TODO: consider consistency with statistics definition in auth.spec
auth_queries_tcp="\<queries\.tcp\>"
auth_queries_udp="\<queries\.udp\>"
echo "I:Checking b10-auth is working by default ($n)"
$DIG +norec @10.53.0.1 -p 53210 ns.example.com. A >dig.out.$n || status=1
# perform a simple check on the output (digcomp would be too much for this)
......@@ -40,8 +44,8 @@ echo 'Stats show
--csv-file-dir=$BINDCTL_CSV_DIR > bindctl.out.$n || status=1
# the server should have received 1 UDP and 1 TCP queries (TCP query was
# sent from the server startup script)
grep "\"auth.queries.tcp\": 1," bindctl.out.$n > /dev/null || status=1
grep "\"auth.queries.udp\": 1," bindctl.out.$n > /dev/null || status=1
grep $auth_queries_tcp".*\<1\>" bindctl.out.$n > /dev/null || status=1
grep $auth_queries_udp".*\<1\>" bindctl.out.$n > /dev/null || status=1
if [ $status != 0 ]; then echo "I:failed"; fi
n=`expr $n + 1`
......@@ -73,8 +77,8 @@ echo 'Stats show
' | $RUN_BINDCTL \
--csv-file-dir=$BINDCTL_CSV_DIR > bindctl.out.$n || status=1
# The statistics counters should have been reset while stop/start.
grep "\"auth.queries.tcp\": 0," bindctl.out.$n > /dev/null || status=1
grep "\"auth.queries.udp\": 1," bindctl.out.$n > /dev/null || status=1
grep $auth_queries_tcp".*\<0\>" bindctl.out.$n > /dev/null || status=1
grep $auth_queries_udp".*\<1\>" bindctl.out.$n > /dev/null || status=1
if [ $status != 0 ]; then echo "I:failed"; fi
n=`expr $n + 1`
......@@ -97,8 +101,8 @@ echo 'Stats show
' | $RUN_BINDCTL \
--csv-file-dir=$BINDCTL_CSV_DIR > bindctl.out.$n || status=1
# The statistics counters shouldn't be reset due to hot-swapping datasource.
grep "\"auth.queries.tcp\": 0," bindctl.out.$n > /dev/null || status=1
grep "\"auth.queries.udp\": 2," bindctl.out.$n > /dev/null || status=1
grep $auth_queries_tcp".*\<0\>" bindctl.out.$n > /dev/null || status=1
grep $auth_queries_udp".*\<2\>" bindctl.out.$n > /dev/null || status=1
if [ $status != 0 ]; then echo "I:failed"; fi
n=`expr $n + 1`
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment