Skip to content

Commit

Permalink
tests: engine-analysis pkt_stream rule type tests
Browse files Browse the repository at this point in the history
To accompany Rule Types documentation.

Related to
Task #7031
  • Loading branch information
jufajardini committed Jan 24, 2025
1 parent 8a499da commit cf44ab5
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/rules/rule-type-pkt-stream/test.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
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;)
20 changes: 20 additions & 0 deletions tests/rules/rule-type-pkt-stream/test.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit cf44ab5

Please sign in to comment.