|
@@ -24,6 +24,10 @@ SYSTEMTESTTOP=..
|
|
|
status=0
|
|
|
n=0
|
|
|
|
|
|
+
|
|
|
+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
|
|
|
|
|
@@ -40,8 +44,8 @@ echo 'Stats show
|
|
|
--csv-file-dir=$BINDCTL_CSV_DIR > bindctl.out.$n || 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
|
|
|
+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
|
|
|
|
|
|
-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
|
|
|
|
|
|
-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`
|
|
|
|