From: Kees Monshouwer Date: Fri, 13 Sep 2013 20:43:45 +0000 (+0200) Subject: improve tsig test X-Git-Tag: rec-3.6.0-rc1~442^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=360770445b437950d6feb79b676487323e210c4a;p=pdns improve tsig test --- diff --git a/regression-tests/start-test-stop b/regression-tests/start-test-stop index a653014a1..6ae7096e4 100755 --- a/regression-tests/start-test-stop +++ b/regression-tests/start-test-stop @@ -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 diff --git a/regression-tests/tsig-axfr/command b/regression-tests/tsig-axfr/command index 91bea694a..0450564a1 100755 --- a/regression-tests/tsig-axfr/command +++ b/regression-tests/tsig-axfr/command @@ -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'