Skip to content

Commit

Permalink
tests: add rule type check for icmp_id
Browse files Browse the repository at this point in the history
Ticket: #6360
  • Loading branch information
AkakiAlice authored and victorjulien committed Oct 15, 2024
1 parent 19061e7 commit b337a34
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/rules/icmp_id/test.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alert icmp any any -> any any (msg:"Testing icmp_id"; icmp_id:2; sid:1;)
15 changes: 15 additions & 0 deletions tests/rules/icmp_id/test.yaml
Original file line number Diff line number Diff line change
@@ -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: "icmp_id"
lists.packet.matches[0].id.number: 2

0 comments on commit b337a34

Please sign in to comment.