]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Adapt the upforwd test to the SIG(0) removal
authorAram Sargsyan <aram@isc.org>
Tue, 21 May 2024 09:29:35 +0000 (09:29 +0000)
committerNicki Křížek <nicki@isc.org>
Wed, 24 Jul 2024 10:15:23 +0000 (12:15 +0200)
Change the check so that update with SIG(0) is expected to fail.

(cherry picked from commit 5f7558f6dbb0527c08caf281299245ab8de268cd)

bin/tests/system/upforwd/tests.sh

index 1cf8d3be76e5f429c78ddb45962b28376f4b2acb..7110ea5774fd2b58f8c23b745643b2afe0b12dde 100644 (file)
@@ -177,9 +177,10 @@ n=`expr $n + 1`
 
 if test -f keyname
 then
-       echo_i "checking update forwarding to with sig0 ($n)"
+       echo_i "checking update forwarding to with sig0 (expected to fail) ($n)"
        ret=0
        keyname=`cat keyname`
+       # SIG(0) is removed, update is expected to fail.
        $NSUPDATE -k $keyname.private -- - <<EOF
        server 10.53.0.3 ${PORT}
        zone example2
@@ -187,8 +188,9 @@ then
        update add unsigned.example2. 600 TXT Foo
        send
 EOF
-       $DIG -p ${PORT} unsigned.example2 A @10.53.0.1 > dig.out.ns1.test$n
-       grep "status: NOERROR" dig.out.ns1.test$n > /dev/null || ret=1
+       >nsupdate.out.$n 2>&1 && ret=1
+       $DIG -p ${PORT} unsigned.example2 A @10.53.0.1 > dig.out.ns1.test$n || ret=1
+       grep "status: NOERROR" dig.out.ns1.test$n > /dev/null && ret=1
        if [ $ret != 0 ] ; then echo_i "failed"; fi
        status=`expr $status + $ret`
        n=`expr $n + 1`