Skip to content

Commit

Permalink
test/stream: Update drop reason per new reason code
Browse files Browse the repository at this point in the history
Issue: 6235
  • Loading branch information
jlucovsky committed Sep 1, 2023
1 parent e338b7b commit 13789a1
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 3 deletions.
5 changes: 5 additions & 0 deletions tests/exception-policy-stream-reassembly-memcap-01/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Description

Test exception policy logic for stream reassembly.

DEBUG is required to enable the "eps" logic.
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
%YAML 1.1
---

stats:
enabled: yes

outputs:
- eve-log:
enabled: yes
Expand All @@ -20,6 +23,10 @@ outputs:
flows: all # start or all: 'start' logs only a single drop
# per flow direction. All logs each dropped pkt.
- flow
- stats:
totals: yes # stats for all threads merged together
threads: no # per thread stats
deltas: no # include delta values
action-order:
- pass
- drop
Expand Down
7 changes: 6 additions & 1 deletion tests/exception-policy-stream-reassembly-memcap-01/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ checks:
count: 1
match:
event_type: drop
drop.reason: "stream memcap"
drop.reason: "stream reassembly"
- filter:
count: 28
match:
Expand All @@ -48,3 +48,8 @@ checks:
match:
event_type: flow
flow.action: drop
- filter:
count: 1
match:
event_type: stats
stats.ips.drop_reason.stream_reassembly: 1
5 changes: 5 additions & 0 deletions tests/exception-policy-stream-reassembly-memcap-04/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Description

Test exception policy logic for stream reassembly.

DEBUG is required to enable the "eps" logic.
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ outputs:
flows: all # start or all: 'start' logs only a single drop
# per flow direction. All logs each dropped pkt.
- flow
- stats:
totals: yes # stats for all threads merged together
threads: no # per thread stats
deltas: no # include delta values
7 changes: 6 additions & 1 deletion tests/exception-policy-stream-reassembly-memcap-04/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ checks:
count: 1
match:
event_type: drop
drop.reason: "stream memcap"
drop.reason: "stream reassembly"
- filter:
count: 28
match:
Expand All @@ -48,3 +48,8 @@ checks:
match:
event_type: flow
flow.action: drop
- filter:
count: 1
match:
event_type: stats
stats.ips.drop_reason.stream_reassembly: 1
5 changes: 5 additions & 0 deletions tests/exception-policy-stream-reassembly-memcap-05/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Description

Test exception policy logic for stream reassembly.

DEBUG is required to enable the "eps" logic.
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ outputs:
flows: all # start or all: 'start' logs only a single drop
# per flow direction. All logs each dropped pkt.
- flow
- stats:
totals: yes # stats for all threads merged together
threads: no # per thread stats
deltas: no # include delta values
7 changes: 6 additions & 1 deletion tests/exception-policy-stream-reassembly-memcap-05/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ checks:
count: 1
match:
event_type: drop
drop.reason: "stream memcap"
drop.reason: "stream reassembly"
- filter:
count: 0
match:
Expand All @@ -49,3 +49,8 @@ checks:
match:
event_type: flow
flow.action: drop
- filter:
count: 1
match:
event_type: stats
stats.ips.drop_reason.stream_reassembly: 1

0 comments on commit 13789a1

Please sign in to comment.