Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: check flowint isnotset support - v1 #2163

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions tests/flowint-isnotset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Test
----

Simple test to check that the keyword ``flowint`` accepts both ``notset``
and ``isnotset``.

Pcap
----

From test tls-subjectaltname

Redmine Ticket
--------------

https://redmine.openinfosecfoundation.org/issues/7426
2 changes: 2 additions & 0 deletions tests/flowint-isnotset/test.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
alert tls any any -> any any (msg:"test flowint isnotset"; flowint:flowtls1,isnotset; flowint:flowtls1,+,1; noalert; sid:1;)
alert tls any any -> any any (msg:"test flowint notset"; flowint:flowtls2,notset; flowint:flowtls2,+,1; sid:2;)
19 changes: 19 additions & 0 deletions tests/flowint-isnotset/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
requires:
min-version: 8

pcap: ../tls/tls-subjectaltname/input.pcap

args:
- -k none

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