]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
http: add test about http parser error
authorPhilippe Antoine <pantoine@oisf.net>
Thu, 27 Mar 2025 13:43:29 +0000 (14:43 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 4 Apr 2025 00:35:11 +0000 (02:35 +0200)
tests/http-data-after-09/README.md [new file with mode: 0644]
tests/http-data-after-09/input.pcap [new file with mode: 0644]
tests/http-data-after-09/test.yaml [new file with mode: 0644]

diff --git a/tests/http-data-after-09/README.md b/tests/http-data-after-09/README.md
new file mode 100644 (file)
index 0000000..2fad128
--- /dev/null
@@ -0,0 +1,5 @@
+# HTTP data after 0.9
+
+Test that we do not fully error on data after HTTP/0.9
+
+The pcap file is hand crafted
diff --git a/tests/http-data-after-09/input.pcap b/tests/http-data-after-09/input.pcap
new file mode 100644 (file)
index 0000000..bcf39b0
Binary files /dev/null and b/tests/http-data-after-09/input.pcap differ
diff --git a/tests/http-data-after-09/test.yaml b/tests/http-data-after-09/test.yaml
new file mode 100644 (file)
index 0000000..e32df6b
--- /dev/null
@@ -0,0 +1,12 @@
+requires:
+  min-version: 8
+
+args: 
+- -k none
+
+checks:
+  - filter:
+      count: 1
+      match:
+        event_type: stats
+        stats.app_layer.error.http.parser: 0
\ No newline at end of file