]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
Adds test with multiple HTTP 100 responses
authorPhilippe Antoine <contact@catenacyber.fr>
Mon, 20 Mar 2023 12:15:20 +0000 (13:15 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 17 Apr 2023 08:54:29 +0000 (10:54 +0200)
tests/http-multiple100/README.md [new file with mode: 0644]
tests/http-multiple100/input.pcap [new file with mode: 0644]
tests/http-multiple100/test.yaml [new file with mode: 0644]

diff --git a/tests/http-multiple100/README.md b/tests/http-multiple100/README.md
new file mode 100644 (file)
index 0000000..4007fa3
--- /dev/null
@@ -0,0 +1,5 @@
+# HTTP multiple 100
+
+This test verifies that Suricata continues parsing even if a HTTP server replies multiple times the status 100 Continue.
+
+The pcap file is downloaded from https://github.com/OISF/libhtp/issues/377
diff --git a/tests/http-multiple100/input.pcap b/tests/http-multiple100/input.pcap
new file mode 100644 (file)
index 0000000..9aeb6c1
Binary files /dev/null and b/tests/http-multiple100/input.pcap differ
diff --git a/tests/http-multiple100/test.yaml b/tests/http-multiple100/test.yaml
new file mode 100644 (file)
index 0000000..0692cb1
--- /dev/null
@@ -0,0 +1,15 @@
+args:
+  - -k none
+
+checks:
+  - filter:
+      count: 1
+      match:
+        event_type: fileinfo
+        fileinfo.size: 34293
+
+  - filter:
+      count: 1
+      match:
+        event_type: http
+        http.status: 200