]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
dns-udp-eve-log-answer-only: v2 and v3 tests
authorJason Ish <jason.ish@oisf.net>
Thu, 4 Jul 2024 21:43:29 +0000 (15:43 -0600)
committerVictor Julien <victor@inliniac.net>
Tue, 9 Jul 2024 10:15:24 +0000 (12:15 +0200)
tests/dns/dns-udp-eve-log-answer-only/suricata.yaml [moved from tests/dns-udp-eve-log-answer-only/suricata.yaml with 100% similarity]
tests/dns/dns-udp-eve-log-answer-only/test.yaml [new file with mode: 0644]
tests/dns/v2/dns-udp-eve-log-answer-only/suricata.yaml [new file with mode: 0644]
tests/dns/v2/dns-udp-eve-log-answer-only/test.yaml [moved from tests/dns-udp-eve-log-answer-only/test.yaml with 55% similarity]

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 (file)
index 0000000..d559210
--- /dev/null
@@ -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 (file)
index 0000000..47e370d
--- /dev/null
@@ -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
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 f2cab03aace7e476c270bc72367303bcd0239475..837e3b59c549b757ddf7e6ab63501e3a2e00961a 100644 (file)
@@ -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: