From: Philippe Antoine Date: Wed, 29 Mar 2023 17:06:12 +0000 (+0200) Subject: Adds test about http.connection with to client X-Git-Tag: suricata-6.0.13~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1157%2Fhead;p=thirdparty%2Fsuricata-verify.git Adds test about http.connection with to client Ticket: #5746 --- diff --git a/tests/http-connection-toclient/README.md b/tests/http-connection-toclient/README.md new file mode 100644 index 000000000..aebb0f5ff --- /dev/null +++ b/tests/http-connection-toclient/README.md @@ -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 index 000000000..6ee4ea7ef 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 index 000000000..8232a2893 --- /dev/null +++ b/tests/http-connection-toclient/test.rules @@ -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 index 000000000..5743ee65f --- /dev/null +++ b/tests/http-connection-toclient/test.yaml @@ -0,0 +1,11 @@ +requires: + min-version: 7 + +args: +- -k none --set stream.midstream=true + +checks: + - filter: + count: 1 + match: + event_type: alert