]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
Adds test that we parse http not as 0.9 1602/head
authorPhilippe Antoine <pantoine@oisf.net>
Thu, 21 Dec 2023 12:17:15 +0000 (13:17 +0100)
committerPhilippe Antoine <pantoine@oisf.net>
Tue, 23 Jan 2024 12:44:07 +0000 (13:44 +0100)
Ticket: 6643

tests/http-not09/README.md [new file with mode: 0644]
tests/http-not09/input.pcap [new file with mode: 0644]
tests/http-not09/test.yaml [new file with mode: 0644]

diff --git a/tests/http-not09/README.md b/tests/http-not09/README.md
new file mode 100644 (file)
index 0000000..dd731b8
--- /dev/null
@@ -0,0 +1,11 @@
+# Test Description
+
+Test that we parse weird HTTP not as HTTP/0.9
+
+## PCAP
+
+Crafted by running server `python3 -m http.server 8000` and a dummy client sending hardcoded data
+
+## Related issues
+
+https://redmine.openinfosecfoundation.org/issues/6643
diff --git a/tests/http-not09/input.pcap b/tests/http-not09/input.pcap
new file mode 100644 (file)
index 0000000..acc9a0e
Binary files /dev/null and b/tests/http-not09/input.pcap differ
diff --git a/tests/http-not09/test.yaml b/tests/http-not09/test.yaml
new file mode 100644 (file)
index 0000000..b835a38
--- /dev/null
@@ -0,0 +1,9 @@
+args:
+  - -k none
+
+checks:
+  - filter:
+      count: 1
+      match:
+        event_type: http
+        http.http_user_agent: myscript