]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
tests: add test for issue 8224 2870/head
authorVictor Julien <victor@inliniac.net>
Fri, 16 Jan 2026 12:11:07 +0000 (13:11 +0100)
committerVictor Julien <vjulien@oisf.net>
Fri, 16 Jan 2026 21:07:41 +0000 (21:07 +0000)
tests/bug-8224-01/example-s0.pcap [new file with mode: 0644]
tests/bug-8224-01/test.rules [new file with mode: 0644]
tests/bug-8224-01/test.yaml [new file with mode: 0644]

diff --git a/tests/bug-8224-01/example-s0.pcap b/tests/bug-8224-01/example-s0.pcap
new file mode 100644 (file)
index 0000000..cd227ea
Binary files /dev/null and b/tests/bug-8224-01/example-s0.pcap differ
diff --git a/tests/bug-8224-01/test.rules b/tests/bug-8224-01/test.rules
new file mode 100644 (file)
index 0000000..62fdde8
--- /dev/null
@@ -0,0 +1 @@
+drop http 172.31.10.37 any -> 18.180.192.156 any (app-layer-event:http.request_field_too_long; flow:established; msg:"HTTP Dropped - Request too long"; priority:1; sid:2; gid:1; rev:1;)
diff --git a/tests/bug-8224-01/test.yaml b/tests/bug-8224-01/test.yaml
new file mode 100644 (file)
index 0000000..d231cb5
--- /dev/null
@@ -0,0 +1,16 @@
+requires:
+  min-version: 9
+
+args:
+  - --simulate-ips
+  - -k none
+  # disable exception policy to avoid dropping the flow before rules could match
+  - --set exception-policy=ignore
+
+checks:
+  - filter:
+      count: 1
+      match:
+        event_type: alert
+        alert.signature_id: 2
+        pcap_cnt: 19