Skip to content

Commit

Permalink
tests: add test for issue 7241/7242 for 7
Browse files Browse the repository at this point in the history
Add test that works with Suricata 7.
  • Loading branch information
victorjulien committed Sep 11, 2024
1 parent d13aaf8 commit 9eeebbf
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/bug-7241-02-pre8/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Test for issue 7272
===================

Test specifically for the features supported in Suricata 7.
2 changes: 2 additions & 0 deletions tests/bug-7241-02-pre8/test.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
drop tcp any any -> any any (flow:established; app-layer-protocol:!tls; sid:1;)
drop tcp any any -> any any (flow:established; app-layer-protocol:!tls; prefilter; sid:2;)
20 changes: 20 additions & 0 deletions tests/bug-7241-02-pre8/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
requires:
min-version: 7

pcap: ../tls/tls-random/input.pcap

args:
- -k none

checks:
- filter:
count: 0
match:
alert.signature_id: 1
event_type: alert
checks:
- filter:
count: 0
match:
alert.signature_id: 2
event_type: alert

0 comments on commit 9eeebbf

Please sign in to comment.