From 227f9aa0646cdf521e0db0d472f8bcc1e2bd6154 Mon Sep 17 00:00:00 2001 From: Aram Sargsyan Date: Tue, 21 May 2024 09:29:35 +0000 Subject: [PATCH] Adapt the upforwd test to the SIG(0) removal Change the check so that update with SIG(0) is expected to fail. --- bin/tests/system/upforwd/tests.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bin/tests/system/upforwd/tests.sh b/bin/tests/system/upforwd/tests.sh index 25919f81e3..20758a6926 100644 --- a/bin/tests/system/upforwd/tests.sh +++ b/bin/tests/system/upforwd/tests.sh @@ -229,10 +229,12 @@ fi n=$((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) - $NSUPDATE -k $keyname.private -- - <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 + grep "status: NOERROR" dig.out.ns1.test$n >/dev/null && ret=1 if [ $ret != 0 ]; then echo_i "failed"; fi status=$((status + ret)) n=$((n + 1))