diff --git a/tests/rules/flow_rate/test.rules b/tests/rules/flow_rate/test.rules new file mode 100644 index 000000000..63907fd44 --- /dev/null +++ b/tests/rules/flow_rate/test.rules @@ -0,0 +1 @@ +pass tcp any any -> any any (msg:"Testing flow.rate"; flow.rate:500; alert; sid:1;) diff --git a/tests/rules/flow_rate/test.yaml b/tests/rules/flow_rate/test.yaml new file mode 100644 index 000000000..fbdc616b4 --- /dev/null +++ b/tests/rules/flow_rate/test.yaml @@ -0,0 +1,15 @@ +requires: + min-version: 8.0 + pcap: false + +args: + - --engine-analysis + +checks: +- filter: + filename: rules.json + count: 1 + match: + id: 1 + lists.packet.matches[0].name: "flow.rate" + lists.packet.matches[0].flow_rate: 500