]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
Adds test about http.connection with to client 1157/head
authorPhilippe Antoine <contact@catenacyber.fr>
Wed, 29 Mar 2023 17:06:12 +0000 (19:06 +0200)
committerPhilippe Antoine <pantoine@oisf.net>
Thu, 27 Apr 2023 20:26:35 +0000 (22:26 +0200)
Ticket: #5746

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

diff --git a/tests/http-connection-toclient/README.md b/tests/http-connection-toclient/README.md
new file mode 100644 (file)
index 0000000..aebb0f5
--- /dev/null
@@ -0,0 +1,9 @@
+PCAP
+----
+
+Coming from https://redmine.openinfosecfoundation.org/issues/5746
+
+Test
+----
+
+Test that keyword `http.connection` works in the to client direction
diff --git a/tests/http-connection-toclient/input.pcap b/tests/http-connection-toclient/input.pcap
new file mode 100644 (file)
index 0000000..6ee4ea7
Binary files /dev/null and b/tests/http-connection-toclient/input.pcap differ
diff --git a/tests/http-connection-toclient/test.rules b/tests/http-connection-toclient/test.rules
new file mode 100644 (file)
index 0000000..8232a28
--- /dev/null
@@ -0,0 +1 @@
+alert tcp any any -> any any (msg:"tfo test15"; flow: to_client; http.connection; content:"close"; sid:15;)
diff --git a/tests/http-connection-toclient/test.yaml b/tests/http-connection-toclient/test.yaml
new file mode 100644 (file)
index 0000000..5743ee6
--- /dev/null
@@ -0,0 +1,11 @@
+requires:
+  min-version: 7
+
+args:
+- -k none --set stream.midstream=true
+
+checks:
+  - filter:
+      count: 1
+      match:
+        event_type: alert