]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
fix legacy test
authorEvan Hunt <each@isc.org>
Thu, 24 Jan 2019 06:08:43 +0000 (22:08 -0800)
committerEvan Hunt <each@isc.org>
Fri, 25 Jan 2019 08:44:11 +0000 (00:44 -0800)
use rndc rather than signals to stop the server

bin/tests/system/legacy/ns1/named1.conf.in
bin/tests/system/legacy/tests.sh

index d62480b04dc00c4ec3e802a1834c189efe88ac8f..06881906da30839f88241336c77c4d7e24275e22 100644 (file)
@@ -21,6 +21,15 @@ options {
        dnssec-validation yes;
 };
 
+key rndc_key {
+       secret "1234abcd8765";
+       algorithm hmac-sha256;
+};
+
+controls {
+       inet 10.53.0.1 port @CONTROLPORT@ allow { any; } keys { rndc_key; };
+};
+
 zone "." {
        type master;
        file "root.db";
index 5c58dccb976367d920dda3371aa12e8acf218886..69afd94806986858d55445548b4c234d2410e8bd 100755 (executable)
@@ -196,10 +196,8 @@ grep "status: NOERROR" dig.out.test$n > /dev/null && ret=1
 if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
-$PERL $SYSTEMTESTTOP/stop.pl legacy ns1
-
+$PERL $SYSTEMTESTTOP/stop.pl --use-rndc --port ${CONTROLPORT} legacy ns1
 copy_setports ns1/named2.conf.in ns1/named.conf
-
 $PERL $SYSTEMTESTTOP/start.pl --noclean --restart --port ${PORT} legacy ns1
 
 n=`expr $n + 1`