]> granicus.if.org Git - pdns/commitdiff
improve tsig test
authorKees Monshouwer <mind04@monshouwer.org>
Fri, 13 Sep 2013 20:43:45 +0000 (22:43 +0200)
committermind04 <mind04@monshouwer.org>
Fri, 13 Sep 2013 20:43:45 +0000 (22:43 +0200)
regression-tests/start-test-stop
regression-tests/tsig-axfr/command

index a653014a1679f899fed50b36fc2eeb0555d85c76..6ae7096e4cd378a37d1d182d7247524e529e5d9c 100755 (executable)
@@ -6,6 +6,9 @@ PDNS2=${PDNS2:-../pdns/pdns_server}
 ALGORITHM=${ALGORITHM:="hmac-md5"}
 KEY=${KEY:="kp4/24gyYsEzbuTVJRUMoqGFmN3LYgVDzJ/3oRSP7ys="}
 
+export ALGORITHM
+export KEY
+
 nsdfix ()
 {
        sed -e 's/"A very .*"/"shorter"/' < test.com > test.com.nsd
index 91bea694a35905768731f9c19f36a594253bdce9..0450564a18fb08f4d453e5246226cb275a7e62db 100755 (executable)
@@ -1,3 +1,3 @@
 #!/bin/sh 
 
-dig -t axfr tsig.com @$nameserver -p $port -y 'test:kp4/24gyYsEzbuTVJRUMoqGFmN3LYgVDzJ/3oRSP7ys=' | grep 'IN\s*SOA'
+dig -t axfr tsig.com @$nameserver -p $port -y $ALGORITHM:test:$KEY | grep 'IN\s*SOA'