Skip to content

Commit dbc1af3

Browse files
committed
datasets: test with multi-buffer and occurences in different packets
Ticket: 5576
1 parent daec58f commit dbc1af3

File tree

5 files changed

+32
-0
lines changed

5 files changed

+32
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Test
2+
====
3+
4+
Test datasets only sets when there is a full signature match.
5+
Test is with a signature using different keywords matching at different stages,
6+
and pcap having different packets making the transaction progress step by step.
7+
And test is using a multi-buffer to test that we only save the right occurences.
8+
9+
https://redmine.openinfosecfoundation.org/issues/5576
10+
11+
PCAP
12+
====
13+
14+
Pcap crafted with some http server and some python client that delays or not the writing of the headers
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
WC1maXJzdDogc2VjcmV0
2+
SGVhZGVyMTogZmlyc3Q=
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
alert http any any -> any any ( sid: 1; http.stat_code; content: "200"; fast_pattern; http.response_header; content: "first"; dataset:set,http_match,type string,save http_match.csv; file.data; content: "later";)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
requires:
2+
min-version: 8
3+
4+
args:
5+
- -k none --no-random --data-dir=${OUTPUT_DIR}
6+
7+
checks:
8+
- filter:
9+
count: 1
10+
match:
11+
event_type: alert
12+
alert.signature_id: 1
13+
- file-compare:
14+
filename: http_match.csv
15+
expected: expected/http_match.csv

0 commit comments

Comments
 (0)