From: Juliana Fajardini Date: Fri, 24 Jan 2025 18:27:42 +0000 (-0300) Subject: tests: engine-analysis pkt_stream rule type tests X-Git-Tag: suricata-7.0.9~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2261%2Fhead;p=thirdparty%2Fsuricata-verify.git tests: engine-analysis pkt_stream rule type tests To accompany Rule Types documentation. Related to Task #7031 --- diff --git a/tests/rules/rule-type-pkt-stream/test.rules b/tests/rules/rule-type-pkt-stream/test.rules new file mode 100644 index 000000000..a185ac2df --- /dev/null +++ b/tests/rules/rule-type-pkt-stream/test.rules @@ -0,0 +1,3 @@ +# Packet Stream rules +alert tcp any any -> any any (msg:"tcp, anchored content"; content:"abc"; startswith; sid:303;) +alert http any any -> any any (msg:"http, anchored content"; content:"abc"; depth:30; sid:603;) diff --git a/tests/rules/rule-type-pkt-stream/test.yaml b/tests/rules/rule-type-pkt-stream/test.yaml new file mode 100644 index 000000000..26644aa57 --- /dev/null +++ b/tests/rules/rule-type-pkt-stream/test.yaml @@ -0,0 +1,20 @@ +requires: + min-version: 7 + pcap: false + +args: +- --engine-analysis + +checks: + - filter: + filename: rules.json + count: 1 + match: + id: 303 + type: pkt_stream + - filter: + filename: rules.json + count: 1 + match: + id: 603 + type: pkt_stream