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

diff --git a/tests/dns-udp-eve-log-query-only-v1/dns-udp-google.com-a-aaaa-mx.pcap b/tests/dns-udp-eve-log-query-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-query-only-v1/dns-udp-google.com-a-aaaa-mx.pcap differ
diff --git a/tests/dns-udp-eve-log-query-only-v1/suricata.yaml b/tests/dns-udp-eve-log-query-only-v1/suricata.yaml
new file mode 100644 (file)
index 0000000..dfa6e4c
--- /dev/null
@@ -0,0 +1,14 @@
+%YAML 1.1
+---
+
+outputs:
+  - eve-log:
+      enabled: yes
+      filetype: regular
+      filename: eve.json
+      types:
+        - dns:
+            version: 1
+            query: yes
+            answer: no
+        
diff --git a/tests/dns-udp-eve-log-query-only-v1/test.yaml b/tests/dns-udp-eve-log-query-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 dfa6e4cb4d076d9d2852f6fc5293018f650b39c6..f79fff57c94e98a676facfa1e254af6364ed824e 100644 (file)
@@ -8,7 +8,6 @@ outputs:
       filename: eve.json
       types:
         - dns:
-            version: 1
-            query: yes
-            answer: no
+            requests: yes
+            responses: no
         
index 56ea9b0d57173b93569d9c72c9b1372ce9234d13..a80f8d75b19b074372017f315ad5c8a19494d558 100644 (file)
@@ -1,3 +1,13 @@
 requires:
   features:
     - HAVE_LIBJANSSON
+
+checks:
+  - filter:
+      count: 3
+      match:
+        dns.type: query
+  - filter:
+      count: 3
+      match:
+        event_type: dns