]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
dns-udp-junkrequest-first: v2 and v3 tests
authorJason Ish <jason.ish@oisf.net>
Thu, 4 Jul 2024 23:39:40 +0000 (17:39 -0600)
committerVictor Julien <victor@inliniac.net>
Tue, 9 Jul 2024 10:15:24 +0000 (12:15 +0200)
tests/dns-udp-junkrequest-first/test.yaml

index f4860936bc48a1574b0ce1f61ae65b8555ebb426..cd2f2f6452b9713451bb5cde40503756e75613ce 100644 (file)
@@ -1,12 +1,20 @@
 requires:
   min-version: 7
-  features:
-    - HAVE_LIBJANSSON
 
 checks:
 
   # Check that there is one DNS event with specific parameters.
   - filter:
+      requires:
+        min-version: 8
+      count: 1
+      match:
+        event_type: dns
+        dns.type: request
+        dns.queries[0].rrname: catenacyber.Fr
+  - filter:
+      requires:
+        lt-version: 8
       count: 1
       match:
         event_type: dns