From 079581aa6bea18b642b213de84a37b4e4950cd12 Mon Sep 17 00:00:00 2001 From: Johanna Amann Date: Wed, 27 Nov 2024 16:51:53 +0000 Subject: [PATCH] Add TEST-REQUIRES: which jq to two new tests that are using jq --- .../policy/protocols/conn/disable-unknown-ip-proto-support.zeek | 1 + .../scripts/policy/protocols/conn/ip-proto-name-logging.zeek | 1 + 2 files changed, 2 insertions(+) diff --git a/testing/btest/scripts/policy/protocols/conn/disable-unknown-ip-proto-support.zeek b/testing/btest/scripts/policy/protocols/conn/disable-unknown-ip-proto-support.zeek index 7e3b93a7cb..4f2be07944 100644 --- a/testing/btest/scripts/policy/protocols/conn/disable-unknown-ip-proto-support.zeek +++ b/testing/btest/scripts/policy/protocols/conn/disable-unknown-ip-proto-support.zeek @@ -1,3 +1,4 @@ +# @TEST-REQUIRES: which jq # @TEST-DOC: Test the policy for removing the unknown IP protocol field and connections from conn.log # @TEST-EXEC: zeek -r $TRACES/cisco-fabric-path.pcap %INPUT # @TEST-EXEC: test $(head -1 conn.log | jq 'has("ip_proto")') = "false" diff --git a/testing/btest/scripts/policy/protocols/conn/ip-proto-name-logging.zeek b/testing/btest/scripts/policy/protocols/conn/ip-proto-name-logging.zeek index 0d3ee7fd37..d078adf03c 100644 --- a/testing/btest/scripts/policy/protocols/conn/ip-proto-name-logging.zeek +++ b/testing/btest/scripts/policy/protocols/conn/ip-proto-name-logging.zeek @@ -1,3 +1,4 @@ +# @TEST-REQUIRES: which jq # @TEST-DOC: Tests the ip-proto-name-logging policy file # @TEST-EXEC: zeek -r $TRACES/cisco-fabric-path.pcap %INPUT > out