From: Mark Andrews Date: Wed, 22 Jun 2022 11:45:46 +0000 (+0200) Subject: Check that the UDP destination port is logged via dnstap X-Git-Tag: v9.19.3~29^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8d8396c3a7d598e1e74be71bdc72a9452c0d520e;p=thirdparty%2Fbind9.git Check that the UDP destination port is logged via dnstap --- diff --git a/bin/tests/system/dnstap/tests.sh b/bin/tests/system/dnstap/tests.sh index 40ea0b39950..2157fd8c6ac 100644 --- a/bin/tests/system/dnstap/tests.sh +++ b/bin/tests/system/dnstap/tests.sh @@ -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