From: Jason Ish Date: Mon, 15 Mar 2021 21:50:01 +0000 (-0600) Subject: dns-udp-eve-log-answer-only: dns eve v2 test X-Git-Tag: suricata-6.0.4~106 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5cfca66d3b8033cd497a805bf8f226221e4e1fee;p=thirdparty%2Fsuricata-verify.git dns-udp-eve-log-answer-only: dns eve v2 test --- diff --git a/tests/dns-udp-eve-log-answer-only/check.sh b/tests/dns-udp-eve-log-answer-only-v1/check.sh similarity index 100% rename from tests/dns-udp-eve-log-answer-only/check.sh rename to tests/dns-udp-eve-log-answer-only-v1/check.sh diff --git a/tests/dns-udp-eve-log-answer-only-v1/dns-udp-google.com-a-aaaa-mx.pcap b/tests/dns-udp-eve-log-answer-only-v1/dns-udp-google.com-a-aaaa-mx.pcap new file mode 100644 index 000000000..def918f21 Binary files /dev/null and b/tests/dns-udp-eve-log-answer-only-v1/dns-udp-google.com-a-aaaa-mx.pcap differ diff --git a/tests/dns-udp-eve-log-answer-only-v1/suricata.yaml b/tests/dns-udp-eve-log-answer-only-v1/suricata.yaml new file mode 100644 index 000000000..e4ac0832e --- /dev/null +++ b/tests/dns-udp-eve-log-answer-only-v1/suricata.yaml @@ -0,0 +1,14 @@ +%YAML 1.1 +--- + +outputs: + - eve-log: + enabled: yes + filetype: regular + filename: eve.json + types: + - dns: + version: 1 + query: no + answer: yes + diff --git a/tests/dns-udp-eve-log-answer-only-v1/test.yaml b/tests/dns-udp-eve-log-answer-only-v1/test.yaml new file mode 100644 index 000000000..9ee272d75 --- /dev/null +++ b/tests/dns-udp-eve-log-answer-only-v1/test.yaml @@ -0,0 +1,4 @@ +requires: + features: + - HAVE_LIBJANSSON + lt-version: 7 diff --git a/tests/dns-udp-eve-log-answer-only/suricata.yaml b/tests/dns-udp-eve-log-answer-only/suricata.yaml index e4ac0832e..314990072 100644 --- a/tests/dns-udp-eve-log-answer-only/suricata.yaml +++ b/tests/dns-udp-eve-log-answer-only/suricata.yaml @@ -8,7 +8,5 @@ outputs: filename: eve.json types: - dns: - version: 1 - query: no - answer: yes - + requests: no + responses: yes diff --git a/tests/dns-udp-eve-log-answer-only/test.yaml b/tests/dns-udp-eve-log-answer-only/test.yaml index 56ea9b0d5..9d5319d27 100644 --- a/tests/dns-udp-eve-log-answer-only/test.yaml +++ b/tests/dns-udp-eve-log-answer-only/test.yaml @@ -1,3 +1,14 @@ requires: features: - HAVE_LIBJANSSON + +checks: + - filter: + count: 0 + match: + dns.type: query + - filter: + count: 3 + match: + dns.type: answer +