From b322cc74ea35a7ee6098fb5fb7a9a9261b822ec7 Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Thu, 24 Jan 2019 09:21:35 -0800 Subject: [PATCH] fix rpzrecurse test use rndc to stop servers --- bin/tests/system/rpzrecurse/ns4/named.conf.in | 9 +++++++++ bin/tests/system/rpzrecurse/tests.sh | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/bin/tests/system/rpzrecurse/ns4/named.conf.in b/bin/tests/system/rpzrecurse/ns4/named.conf.in index 24e5115ae64..707b5778063 100644 --- a/bin/tests/system/rpzrecurse/ns4/named.conf.in +++ b/bin/tests/system/rpzrecurse/ns4/named.conf.in @@ -23,4 +23,13 @@ options { recursion no; }; +key rndc_key { + secret "1234abcd8765"; + algorithm hmac-sha256; +}; + +controls { + inet 10.53.0.4 port @CONTROLPORT@ allow { any; } keys { rndc_key; }; +}; + zone "child.example.tld" { type master; file "child.example.db"; }; diff --git a/bin/tests/system/rpzrecurse/tests.sh b/bin/tests/system/rpzrecurse/tests.sh index e93c52fa4ba..948bff5c33a 100644 --- a/bin/tests/system/rpzrecurse/tests.sh +++ b/bin/tests/system/rpzrecurse/tests.sh @@ -46,7 +46,7 @@ run_server() { TESTNAME=$1 echo_i "stopping resolver" - $PERL $SYSTEMTESTTOP/stop.pl rpzrecurse ns2 + $PERL $SYSTEMTESTTOP/stop.pl --use-rndc --port ${CONTROLPORT} rpzrecurse ns2 sleep 1 @@ -122,7 +122,7 @@ for mode in native dnsrps; do continue fi echo_i "attempting to configure servers with DNSRPS..." - $PERL $SYSTEMTESTTOP/stop.pl rpzrecurse + $PERL $SYSTEMTESTTOP/stop.pl --use-rndc --port ${CONTROLPORT} rpzrecurse $SHELL ./setup.sh -N -D $DEBUG sed -n 's/^## //p' dnsrps.conf | cat_i if grep '^#fail' dnsrps.conf >/dev/null; then -- 2.47.3