From: Jason Ish Date: Thu, 4 Jul 2024 21:34:36 +0000 (-0600) Subject: dns-udp-eve-log-mx-only: v2 and v3 tests X-Git-Tag: suricata-7.0.7~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=377176686c087f9c649a1af3ac0d8837b097c90c;p=thirdparty%2Fsuricata-verify.git dns-udp-eve-log-mx-only: v2 and v3 tests --- diff --git a/tests/dns-udp-eve-log-mx-only/suricata.yaml b/tests/dns/dns-udp-eve-log-mx-only/suricata.yaml similarity index 100% rename from tests/dns-udp-eve-log-mx-only/suricata.yaml rename to tests/dns/dns-udp-eve-log-mx-only/suricata.yaml diff --git a/tests/dns/dns-udp-eve-log-mx-only/test.yaml b/tests/dns/dns-udp-eve-log-mx-only/test.yaml new file mode 100644 index 000000000..00b337b83 --- /dev/null +++ b/tests/dns/dns-udp-eve-log-mx-only/test.yaml @@ -0,0 +1,24 @@ +requires: + min-version: 8 + +pcap: ../../dns-udp-eve-log-query-only-v1/dns-udp-google.com-a-aaaa-mx.pcap + +checks: + - filter: + count: 1 + match: + dns.type: request + dns.queries[0].rrtype: "MX" + - filter: + count: 1 + match: + dns.type: request + - filter: + count: 1 + match: + dns.type: response + dns.answers[0].rrtype: "MX" + - filter: + count: 1 + match: + dns.type: response diff --git a/tests/dns/v2/dns-udp-eve-log-mx-only/suricata.yaml b/tests/dns/v2/dns-udp-eve-log-mx-only/suricata.yaml new file mode 100644 index 000000000..aaf5fc320 --- /dev/null +++ b/tests/dns/v2/dns-udp-eve-log-mx-only/suricata.yaml @@ -0,0 +1,12 @@ +%YAML 1.1 +--- + +outputs: + - eve-log: + enabled: yes + filetype: regular + filename: eve.json + types: + - dns: + version: 2 + types: [mx] diff --git a/tests/dns-udp-eve-log-mx-only/test.yaml b/tests/dns/v2/dns-udp-eve-log-mx-only/test.yaml similarity index 73% rename from tests/dns-udp-eve-log-mx-only/test.yaml rename to tests/dns/v2/dns-udp-eve-log-mx-only/test.yaml index 59f7ddb6d..94f6d0cc1 100644 --- a/tests/dns-udp-eve-log-mx-only/test.yaml +++ b/tests/dns/v2/dns-udp-eve-log-mx-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: