From: Mark Andrews Date: Wed, 10 Sep 2025 07:29:31 +0000 (+1000) Subject: test that rrsigs are returned for glue with +cd X-Git-Tag: v9.18.41~16^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=389e767987aff3b8747ecbd6f0cdb222b587a37d;p=thirdparty%2Fbind9.git test that rrsigs are returned for glue with +cd (cherry picked from commit b7e73edd124df4585bc2b00e2e78f4cac75ed660) --- diff --git a/bin/tests/system/dnssec/tests.sh b/bin/tests/system/dnssec/tests.sh index 7e52231501f..05f7d769fd4 100644 --- a/bin/tests/system/dnssec/tests.sh +++ b/bin/tests/system/dnssec/tests.sh @@ -4620,5 +4620,16 @@ n=$((n + 1)) if [ "$ret" -ne 0 ]; then echo_i "failed"; fi status=$((status + ret)) +echo_i "test that RRSIGS are returned for glue name with CD=1 ($n)" +ret=0 +dig_with_opts @10.53.0.4 ns3.secure.example A +cd >dig.out.ns4.test$n +grep "status: NOERROR" dig.out.ns4.test$n >/dev/null || ret=1 +grep "ANSWER: 2," dig.out.ns4.test$n >/dev/null || ret=1 +grep "ns3\.secure\.example\..[0-9]*.IN.A.10\.53\.0.3" dig.out.ns4.test$n >/dev/null || ret=1 +grep "ns3\.secure\.example\..[0-9]*.IN.RRSIG.A " dig.out.ns4.test$n >/dev/null || ret=1 +n=$((n + 1)) +if [ "$ret" -ne 0 ]; then echo_i "failed"; fi +status=$((status + ret)) + echo_i "exit status: $status" [ $status -eq 0 ] || exit 1