]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
test/dns: add address checks for directionality
authorJason Ish <jason.ish@oisf.net>
Thu, 5 Jun 2025 00:50:43 +0000 (18:50 -0600)
committerVictor Julien <victor@inliniac.net>
Tue, 10 Jun 2025 06:36:30 +0000 (08:36 +0200)
tests/dns/dns-additionals-rdata/test.yaml

index aa6b3a69359477693293ed912a957a504b417ef9..8c3b5e6431cb83ebb5eec664b5338192da0e5caa 100644 (file)
@@ -7,4 +7,25 @@ checks:
   - filter:
       count: 1
       match:
+        pcap_cnt: 1
+        event_type: dns
+        src_ip: 10.16.1.11
+        dest_ip: 8.8.8.8
+        dns.type: request
+  - filter:
+      count: 1
+      match:
+        pcap_cnt: 2
+        event_type: alert
         alert.signature_id: 5
+        src_ip: 8.8.8.8
+        dest_ip: 10.16.1.11
+        dns.type: response
+  - filter:
+      count: 1
+      match:
+        pcap_cnt: 2
+        event_type: dns
+        src_ip: 8.8.8.8
+        dest_ip: 10.16.1.11
+        dns.type: response