-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(#2947): add new EPS limit tests
- Loading branch information
Showing
14 changed files
with
986 additions
and
30 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
...n_template/event_processing_test_module/configuration_drop_events_when_queue_is_full.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
- sections: | ||
- section: remote | ||
elements: | ||
- connection: | ||
value: syslog | ||
- port: | ||
value: PORT | ||
- protocol: | ||
value: PROTOCOL | ||
- allowed-ips: | ||
value: 0.0.0.0/0 | ||
- section: global | ||
elements: | ||
- limits: | ||
elements: | ||
- eps: | ||
elements: | ||
- maximum: | ||
value: MAXIMUM | ||
- timeframe: | ||
value: TIMEFRAME |
23 changes: 23 additions & 0 deletions
23
...e/event_processing_test_module/configuration_processing_events_in_order_multi_thread.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
- sections: | ||
- section: remote | ||
elements: | ||
- connection: | ||
value: syslog | ||
- port: | ||
value: PORT | ||
- protocol: | ||
value: PROTOCOL | ||
- allowed-ips: | ||
value: 0.0.0.0/0 | ||
- section: global | ||
elements: | ||
- limits: | ||
elements: | ||
- eps: | ||
elements: | ||
- maximum: | ||
value: MAXIMUM | ||
- timeframe: | ||
value: TIMEFRAME | ||
- logall: | ||
value: 'yes' |
23 changes: 23 additions & 0 deletions
23
.../event_processing_test_module/configuration_processing_events_in_order_single_thread.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
- sections: | ||
- section: remote | ||
elements: | ||
- connection: | ||
value: syslog | ||
- port: | ||
value: PORT | ||
- protocol: | ||
value: PROTOCOL | ||
- allowed-ips: | ||
value: 0.0.0.0/0 | ||
- section: global | ||
elements: | ||
- limits: | ||
elements: | ||
- eps: | ||
elements: | ||
- maximum: | ||
value: MAXIMUM | ||
- timeframe: | ||
value: TIMEFRAME | ||
- logall: | ||
value: 'yes' |
21 changes: 21 additions & 0 deletions
21
...template/event_processing_test_module/configuration_queueing_events_after_limitation.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
- sections: | ||
- section: remote | ||
elements: | ||
- connection: | ||
value: syslog | ||
- port: | ||
value: PORT | ||
- protocol: | ||
value: PROTOCOL | ||
- allowed-ips: | ||
value: 0.0.0.0/0 | ||
- section: global | ||
elements: | ||
- limits: | ||
elements: | ||
- eps: | ||
elements: | ||
- maximum: | ||
value: MAXIMUM | ||
- timeframe: | ||
value: TIMEFRAME |
2 changes: 1 addition & 1 deletion
2
.../integration/test_analysisd/test_eps/data/test_cases/basic_test_module/cases_enabled.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...t_analysisd/test_eps/data/test_cases/configuration_test_module/cases_accepted_values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...ps/data/test_cases/event_processing_test_module/cases_drop_events_when_queue_is_full.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
- name: drop events | ||
description: Drop events when events queue is full | ||
configuration_parameters: | ||
PORT: 514 | ||
PROTOCOL: tcp | ||
MAXIMUM: '1' | ||
TIMEFRAME: '100' | ||
metadata: | ||
maximum: 1 | ||
timeframe: 100 | ||
# syslog simulator parameters | ||
address: 'localhost' | ||
port: 514 | ||
protocol: 'tcp' | ||
messages_number: 50000 | ||
eps: 5000 | ||
|
6 changes: 3 additions & 3 deletions
6
...est_analysisd/test_eps/data/test_cases/event_processing_test_module/cases_limitation.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...est_cases/event_processing_test_module/cases_processing_events_in_order_multi_thread.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
- name: batch events order - multi-thread | ||
description: Process events in batch order | ||
configuration_parameters: | ||
PORT: 514 | ||
PROTOCOL: tcp | ||
MAXIMUM: '20' | ||
TIMEFRAME: '5' | ||
metadata: | ||
maximum: 20 | ||
timeframe: 5 | ||
# syslog simulator parameters | ||
address: 'localhost' | ||
num_batches: 5 | ||
batch_sending_time: 3 | ||
message_1: 'Login failed: admin, test - Group 1' | ||
message_2: 'Login failed: admin, test - Group 2' | ||
message_3: 'Login failed: admin, test - Group 3' | ||
message_4: 'Login failed: admin, test - Group 4' | ||
message_5: 'Login failed: admin, test - Group 5' | ||
port: 514 | ||
protocol: 'tcp' | ||
eps: 100 | ||
messages_number: 100 |
19 changes: 19 additions & 0 deletions
19
...st_cases/event_processing_test_module/cases_processing_events_in_order_single_thread.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
- name: messages events order - single-thread | ||
description: Process events in messages order | ||
configuration_parameters: | ||
PORT: 514 | ||
PROTOCOL: tcp | ||
MAXIMUM: '20' | ||
TIMEFRAME: '5' | ||
metadata: | ||
maximum: 20 | ||
timeframe: 5 | ||
# syslog simulator parameters | ||
address: 'localhost' | ||
message: 'Login failed: admin, test' | ||
port: 514 | ||
protocol: 'tcp' | ||
numbered_messages: 1 | ||
messages_number_1: 300 | ||
eps: 300 | ||
messages_number_2: 200 |
16 changes: 16 additions & 0 deletions
16
.../data/test_cases/event_processing_test_module/cases_queueing_events_after_limitation.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
- name: queue non-processed events | ||
description: Queueing events after processing limitation | ||
configuration_parameters: | ||
PORT: 514 | ||
PROTOCOL: tcp | ||
MAXIMUM: '100' | ||
TIMEFRAME: '10' | ||
metadata: | ||
maximum: 100 | ||
timeframe: 10 | ||
# syslog simulator parameters | ||
address: 'localhost' | ||
port: 514 | ||
protocol: 'tcp' | ||
messages_number: 10000 | ||
eps: 1000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.