]> git.ipfire.org Git - people/stevee/suricata-verify.git/commitdiff
dns-udp-null: use dns v2 logging
authorJason Ish <jason.ish@oisf.net>
Mon, 15 Mar 2021 20:54:36 +0000 (14:54 -0600)
committerJason Ish <jason.ish@oisf.net>
Tue, 16 Mar 2021 04:25:08 +0000 (22:25 -0600)
Also, instead of file check use min-version of 7.

tests/dns-udp-null/suricata.yaml
tests/dns-udp-null/test.yaml

index 5f7eded22dbe6f08572e51f398c349ce1949c786..bf949095f0e45a5834c5e1a5805e1be565718918 100644 (file)
@@ -7,4 +7,3 @@ outputs:
       filename: eve.json
       types:
         - dns:
-            version: 1
index f7ab52297a064f089b99be286fdb2909c3c77ed0..46ea076c4678d816dad8fe565c669a5c1c956bb9 100644 (file)
@@ -1,6 +1,5 @@
 requires:
-  script:
-    - grep -q parse_rdata_null rust/src/dns/parser.rs
+  min-version: 7
 
 checks:
   - filter:
@@ -16,4 +15,4 @@ checks:
         dns.type: answer
         dns.rcode: NOERROR
         dns.rrtype: "NULL"
-        dns.rdata: "VACKD\u0003\\xc5\\xe9\u0001"
+        dns.answers[0].rdata: "VACKD\u0003\\xc5\\xe9\u0001"