Skip to content

Commit

Permalink
test/transform: Tests for case changing transforms
Browse files Browse the repository at this point in the history
Issue: 6439

Tests for case-changing transforms:
- to_lowercase
- to_uppercase
  • Loading branch information
jlucovsky committed Nov 11, 2023
1 parent b592bfc commit 18b6253
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/detect-to_lowercase-01/input.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alert http any any -> any any (msg:"lower-case 1"; flow:established; file_data; to_lowercase; content:"at patpoopy, we have"; sid:1;)
14 changes: 14 additions & 0 deletions tests/detect-to_lowercase-01/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pcap: ../bug-3616-ips/input.pcap

requires:
min-version: 7.0.3
pcap: false

exit-code: 0

checks:
- filter:
count: 1
match:
event_type: alert
alert.signature_id: 1
1 change: 1 addition & 0 deletions tests/detect-to_uppercase-01/input.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alert http any any -> any any (msg:"lower-case 1"; flow:established; file_data; to_uppercase; content:"AT PATPOOPY, WE HAVE"; sid:1;)
14 changes: 14 additions & 0 deletions tests/detect-to_uppercase-01/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pcap: ../bug-3616-ips/input.pcap

requires:
min-version: 7.0.3
pcap: false

exit-code: 0

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

0 comments on commit 18b6253

Please sign in to comment.