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

diff --git a/tests/dns/dns-udp-eve-log-query-only/test.yaml b/tests/dns/dns-udp-eve-log-query-only/test.yaml
new file mode 100644 (file)
index 0000000..b9c1c8d
--- /dev/null
@@ -0,0 +1,14 @@
+requires:
+  min-version: 8
+
+pcap: ../../dns-udp-eve-log-query-only-v1/dns-udp-google.com-a-aaaa-mx.pcap
+
+checks:
+  - filter:
+      count: 3
+      match:
+        dns.type: request
+  - filter:
+      count: 3
+      match:
+        event_type: dns
diff --git a/tests/dns/v2/dns-udp-eve-log-query-only/suricata.yaml b/tests/dns/v2/dns-udp-eve-log-query-only/suricata.yaml
new file mode 100644 (file)
index 0000000..32b65bc
--- /dev/null
@@ -0,0 +1,14 @@
+%YAML 1.1
+---
+
+outputs:
+  - eve-log:
+      enabled: yes
+      filetype: regular
+      filename: eve.json
+      types:
+        - dns:
+            version: 2
+            requests: yes
+            responses: no
+        
similarity index 69%
rename from tests/dns-udp-eve-log-query-only/test.yaml
rename to tests/dns/v2/dns-udp-eve-log-query-only/test.yaml
index 7d00d36107a0bff4ba18834461b6b093b280eff3..09793dfb312a6a103d9c0b6d518d7fca67be7599 100644 (file)
@@ -1,4 +1,4 @@
-pcap: ../dns-udp-eve-log-query-only-v1/dns-udp-google.com-a-aaaa-mx.pcap
+pcap: ../../../dns-udp-eve-log-query-only-v1/dns-udp-google.com-a-aaaa-mx.pcap
 
 requires:
   features: