]> 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:52:08 +0000 (13:52 +0200)
(cherry picked from commit 8d8396c3a7d598e1e74be71bdc72a9452c0d520e)

bin/tests/system/dnstap/tests.sh

index f048939175be9fb0cb6176e8e7ffb5e2eb5d82e6..c8d21b6ec497f59eede69461fc5a6deac0390805 100644 (file)
@@ -519,6 +519,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 [ -n "$PYTHON" ] ; then
        $PYTHON -c "import yaml" 2> /dev/null && HAS_PYYAML=1