]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Check that the UDP destination port is logged via dnstap
authorMark Andrews <marka@isc.org>
Wed, 22 Jun 2022 11:45:46 +0000 (13:45 +0200)
committerMichał Kępień <michal@isc.org>
Wed, 22 Jun 2022 11:45:46 +0000 (13:45 +0200)
bin/tests/system/dnstap/tests.sh

index 40ea0b39950d24abf9ef1cf20a47a12d93a8f8ad..2157fd8c6acab30f7b80379a76c4325269a4ae06 100644 (file)
@@ -518,6 +518,12 @@ ret=0
 if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
+echo_i "checking whether destination UDP port is logged for client queries"
+ret=0
+$DNSTAPREAD ns3/dnstap.out.save | grep -Eq "CQ [0-9:.]+ -> 10.53.0.3:${PORT} UDP" || ret=1
+if [ $ret != 0 ]; then echo_i "failed"; fi
+status=`expr $status + $ret`
+
 HAS_PYYAML=0
 if [ -x "$PYTHON" ] ; then
        $PYTHON -c "import yaml" 2> /dev/null && HAS_PYYAML=1