From a1281025d8a5875bd3c23d327952a8f95b07744f Mon Sep 17 00:00:00 2001 From: Matthijs Mekking Date: Sun, 5 Nov 2023 10:41:14 +0100 Subject: [PATCH] Simple NOTIFY CDS query test case Make sure the signer sends out NOTIFY CDS queries. --- bin/tests/system/multisigner/tests.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bin/tests/system/multisigner/tests.sh b/bin/tests/system/multisigner/tests.sh index 36d6252902..5a849b8481 100644 --- a/bin/tests/system/multisigner/tests.sh +++ b/bin/tests/system/multisigner/tests.sh @@ -83,6 +83,17 @@ check_keytimes check_apex dnssec_verify +# Check if NOTIFY CDS queries have been sent. +n=$((n + 1)) +ret=0 +echo_i "check that NOTIFY CDS queries have been sent ($n)" +# We check by grepping the logs. A better test would be to +# ensure that the NOTIFY message was actually sent. +grep "zone model2.multisigner/IN: notifycds: send NOTIFY CDS query to scanner.multisigner" ns3/named.run > /dev/null || ret=1 +grep "zone model2.secondary/IN (signed): notifycds: send NOTIFY CDS query to scanner.secondary" ns3/named.run > /dev/null || ret=1 +test "$ret" -eq 0 || echo_i "failed" +status=$((status + ret)) + # # Update DNSKEY RRset. #