From: Jason Ish Date: Thu, 4 Jul 2024 21:43:29 +0000 (-0600) Subject: dns-udp-eve-log-answer-only: v2 and v3 tests X-Git-Tag: suricata-7.0.7~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f8308e169f10370517b127e1fb50940a53872cc;p=thirdparty%2Fsuricata-verify.git dns-udp-eve-log-answer-only: v2 and v3 tests --- diff --git a/tests/dns-udp-eve-log-answer-only/suricata.yaml b/tests/dns/dns-udp-eve-log-answer-only/suricata.yaml similarity index 100% rename from tests/dns-udp-eve-log-answer-only/suricata.yaml rename to tests/dns/dns-udp-eve-log-answer-only/suricata.yaml diff --git a/tests/dns/dns-udp-eve-log-answer-only/test.yaml b/tests/dns/dns-udp-eve-log-answer-only/test.yaml new file mode 100644 index 000000000..d55921072 --- /dev/null +++ b/tests/dns/dns-udp-eve-log-answer-only/test.yaml @@ -0,0 +1,15 @@ +requires: + min-version: 8 + +pcap: ../../dns-udp-eve-log-query-only-v1/dns-udp-google.com-a-aaaa-mx.pcap + +checks: + - filter: + count: 0 + match: + dns.type: request + - filter: + count: 3 + match: + dns.type: response + diff --git a/tests/dns/v2/dns-udp-eve-log-answer-only/suricata.yaml b/tests/dns/v2/dns-udp-eve-log-answer-only/suricata.yaml new file mode 100644 index 000000000..47e370d5f --- /dev/null +++ b/tests/dns/v2/dns-udp-eve-log-answer-only/suricata.yaml @@ -0,0 +1,13 @@ +%YAML 1.1 +--- + +outputs: + - eve-log: + enabled: yes + filetype: regular + filename: eve.json + types: + - dns: + version: 2 + requests: no + responses: yes diff --git a/tests/dns-udp-eve-log-answer-only/test.yaml b/tests/dns/v2/dns-udp-eve-log-answer-only/test.yaml similarity index 55% rename from tests/dns-udp-eve-log-answer-only/test.yaml rename to tests/dns/v2/dns-udp-eve-log-answer-only/test.yaml index f2cab03aa..837e3b59c 100644 --- a/tests/dns-udp-eve-log-answer-only/test.yaml +++ b/tests/dns/v2/dns-udp-eve-log-answer-only/test.yaml @@ -1,8 +1,4 @@ -pcap: ../dns-udp-eve-log-query-only-v1/dns-udp-google.com-a-aaaa-mx.pcap - -requires: - features: - - HAVE_LIBJANSSON +pcap: ../../../dns-udp-eve-log-query-only-v1/dns-udp-google.com-a-aaaa-mx.pcap checks: - filter: