]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
dns-udp-eve-log-answer-only: dns eve v2 test
authorJason Ish <jason.ish@oisf.net>
Mon, 15 Mar 2021 21:50:01 +0000 (15:50 -0600)
committerJason Ish <jason.ish@oisf.net>
Tue, 16 Mar 2021 04:25:35 +0000 (22:25 -0600)
tests/dns-udp-eve-log-answer-only-v1/check.sh [moved from tests/dns-udp-eve-log-answer-only/check.sh with 100% similarity]
tests/dns-udp-eve-log-answer-only-v1/dns-udp-google.com-a-aaaa-mx.pcap [new file with mode: 0644]
tests/dns-udp-eve-log-answer-only-v1/suricata.yaml [new file with mode: 0644]
tests/dns-udp-eve-log-answer-only-v1/test.yaml [new file with mode: 0644]
tests/dns-udp-eve-log-answer-only/suricata.yaml
tests/dns-udp-eve-log-answer-only/test.yaml

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 (file)
index 0000000..def918f
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 (file)
index 0000000..e4ac083
--- /dev/null
@@ -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 (file)
index 0000000..9ee272d
--- /dev/null
@@ -0,0 +1,4 @@
+requires:
+  features:
+    - HAVE_LIBJANSSON
+  lt-version: 7
index e4ac0832edfcfc613fe6da6b9a10590a2215373e..314990072627bf49db5b5990ff9ec8674bf6179b 100644 (file)
@@ -8,7 +8,5 @@ outputs:
       filename: eve.json
       types:
         - dns:
-            version: 1
-            query: no
-            answer: yes
-        
+            requests: no
+            responses: yes
index 56ea9b0d57173b93569d9c72c9b1372ce9234d13..9d5319d2768025154ff9b94ab5c9f9491929a5a5 100644 (file)
@@ -1,3 +1,14 @@
 requires:
   features:
     - HAVE_LIBJANSSON
+
+checks:
+  - filter:
+      count: 0
+      match:
+        dns.type: query
+  - filter:
+      count: 3
+      match:
+        dns.type: answer
+