]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
http2: adds test with continuation frames
authorPhilippe Antoine <pantoine@oisf.net>
Thu, 25 Jan 2024 15:00:02 +0000 (16:00 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 16 Feb 2024 05:45:37 +0000 (06:45 +0100)
Ticket: 5926

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

diff --git a/tests/http2-continuation/README.md b/tests/http2-continuation/README.md
new file mode 100644 (file)
index 0000000..f8f2717
--- /dev/null
@@ -0,0 +1,9 @@
+# Description
+
+Test http2 reassembly of header + continuation frames
+
+https://redmine.openinfosecfoundation.org/issues/5926
+
+# PCAP
+
+The pcap was produced with a crafted client against a go server
diff --git a/tests/http2-continuation/input.pcap b/tests/http2-continuation/input.pcap
new file mode 100644 (file)
index 0000000..8aa3823
Binary files /dev/null and b/tests/http2-continuation/input.pcap differ
diff --git a/tests/http2-continuation/test.yaml b/tests/http2-continuation/test.yaml
new file mode 100644 (file)
index 0000000..ce0e27c
--- /dev/null
@@ -0,0 +1,17 @@
+requires:
+  min-version: 7
+
+args:
+- -k none
+
+checks:
+- filter:
+    count: 1
+    match:
+      event_type: http
+      http.request_headers[6].name: namenamenamenamenamenamenamenamenamename
+      http.request_headers[6].value: valuevaluevaluevaluevaluevaluevaluevaluevaluevaluevaluevaluevaluevaluevaluevaluevaluevaluevaluevalue
+- filter:
+    count: 0
+    match:
+      event_type: anomaly