From: Mark Andrews Date: Wed, 11 Nov 2015 23:54:59 +0000 (+1100) Subject: use a test key X-Git-Tag: v9.11.0a1~324^2~5 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=d0afc2d1c4d0e7cde0caf0aebbd3626cf37862aa;p=thirdparty%2Fbind9.git use a test key --- diff --git a/bin/tests/system/rndc/ns5/named.conf b/bin/tests/system/rndc/ns5/named.conf index 5a8a472acb7..35ce5cbbc52 100644 --- a/bin/tests/system/rndc/ns5/named.conf +++ b/bin/tests/system/rndc/ns5/named.conf @@ -24,8 +24,13 @@ options { recursion no; }; +key rndc_key { + secret "1234abcd8765"; + algorithm hmac-sha256; +}; + controls { - inet 10.53.0.5 port 9953 allow { any; } read-only yes; + inet 10.53.0.5 port 9953 allow { any; } keys { rndc_key; } read-only yes; }; zone "." { diff --git a/bin/tests/system/rndc/tests.sh b/bin/tests/system/rndc/tests.sh index 8337cf64e1c..c001ec4dd68 100644 --- a/bin/tests/system/rndc/tests.sh +++ b/bin/tests/system/rndc/tests.sh @@ -435,9 +435,9 @@ status=`expr $status + $ret` echo "I:test read-only control channel access" ret=0 -$RNDC -s 10.53.0.5 -p 9953 status > /dev/null 2>&1 || ret=1 -$RNDC -s 10.53.0.5 -p 9953 nta -dump > /dev/null 2>&1 || ret=1 -$RNDC -s 10.53.0.5 -p 9953 reconfig > /dev/null 2>&1 && ret=1 +$RNDC -s 10.53.0.5 -p 9953 -c ../common/rndc.conf status > /dev/null 2>&1 || ret=1 +$RNDC -s 10.53.0.5 -p 9953 -c ../common/rndc.conf nta -dump > /dev/null 2>&1 || ret=1 +$RNDC -s 10.53.0.5 -p 9953 -c ../common/rndc.conf reconfig > /dev/null 2>&1 && ret=1 if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret`