]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
bug #1818: Update system test for components that are not started by default
authorMukund Sivaraman <muks@isc.org>
Mon, 26 Mar 2012 10:29:32 +0000 (15:59 +0530)
committerMukund Sivaraman <muks@isc.org>
Sun, 15 Apr 2012 09:33:54 +0000 (15:03 +0530)
tests/system/bindctl/tests.sh

index cb9d8be702fea1e84b8a9b7037ab505ef1fe9bd9..2afc56b6cc34034dd4ee743e4e4f059b76a0ae76 100755 (executable)
@@ -32,7 +32,18 @@ cnt_value1=0
 cnt_value2=0
 cnt_value3=0
 
-echo "I:Checking b10-auth is working by default ($n)"
+echo "I:Checking b10-auth is disabled by default ($n)"
+$DIG +norec @10.53.0.1 -p 53210 ns.example.com. A && status=1
+if [ $status != 0 ]; then echo "I:failed"; fi
+n=`expr $n + 1`
+
+echo "I:Starting b10-auth and checking that it works ($n)"
+echo 'config add Boss/components b10-auth
+config set Boss/components/b10-auth { "special": "auth", "kind": "needed" }
+config commit
+quit
+' | $RUN_BINDCTL \
+       --csv-file-dir=$BINDCTL_CSV_DIR 2>&1 > /dev/null || status=1
 $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)
 grep 192.0.2.1 dig.out.$n > /dev/null || status=1
@@ -76,6 +87,7 @@ quit
 ' | $RUN_BINDCTL \
        --csv-file-dir=$BINDCTL_CSV_DIR 2>&1 > /dev/null || status=1
 $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)
 grep 192.0.2.1 dig.out.$n > /dev/null || status=1
 if [ $status != 0 ]; then echo "I:failed"; fi
 n=`expr $n + 1`