Skip to content

Commit

Permalink
feat(#3605): add wazuh-db conf test
Browse files Browse the repository at this point in the history
  • Loading branch information
juliamagan committed Jan 13, 2023
1 parent 6afc9b9 commit e772f22
Show file tree
Hide file tree
Showing 9 changed files with 91 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,18 @@ analysis/global:
failed_items: []
message: Active configuration was successfully read
error: 0

wazuh-db/wdb:
data:
affected_items:
- wdb:
backup:
- database: global
enabled: true
interval: 86400
max_files: 3
total_affected_items: 1
total_failed_items: 0
failed_items: []
message: Active configuration was successfully read
error: 0
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,22 @@ analysis:
failed_items: []
message: Active configuration was successfully read
error: 0

wazuh-db:
data:
affected_items:
- wazuh_db:
commit_time_max: 30
commit_time_min: 10
open_db_limit: 64
worker_pool_size: 16
fragmentation_threshold: 80
fragmentation_delta: 5
free_pages_percentage: 5
max_fragmentation: 95
check_fragmentation_interval: 43200
total_affected_items: 1
total_failed_items: 0
failed_items: []
message: Active configuration was successfully read
error: 0
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,18 @@ analysis/global:
failed_items: []
message: Active configuration was successfully read
error: 0

wazuh-db/wdb:
data:
affected_items:
- wdb:
backup:
- database: global
enabled: true
interval: 86400
max_files: 3
total_affected_items: 1
total_failed_items: 0
failed_items: []
message: Active configuration was successfully read
error: 0
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,22 @@ analysis:
failed_items: []
message: Active configuration was successfully read
error: 0

wazuh-db:
data:
affected_items:
- wazuh_db:
commit_time_max: 60
commit_time_min: 10
open_db_limit: 64
worker_pool_size: 8
fragmentation_threshold: 80
fragmentation_delta: 5
free_pages_percentage: 5
max_fragmentation: 95
check_fragmentation_interval: 43200
total_affected_items: 1
total_failed_items: 0
failed_items: []
message: Active configuration was successfully read
error: 0
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@
#- analysis/labels
- analysis/rule_test
- analysis/global
- wazuh-db/wdb
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,10 @@
ENDPOINT: analysis
metadata:
endpoint: analysis

- name: wazuh-db_endpoint
description: wazuh-db internal configuration endpoint
configuration_parameters:
ENDPOINT: wazuh-db
metadata:
endpoint: wazuh-db
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,9 @@
configuration_parameters: null
metadata:
endpoint: analysis/global

- name: wdb_endpoint
description: wdb endpoint
configuration_parameters: null
metadata:
endpoint: wazuh-db/wdb
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,10 @@
ENDPOINT: analysis
metadata:
endpoint: analysis

- name: wazuh-db_endpoint
description: wazuh-db internal configuration endpoint
configuration_parameters:
ENDPOINT: wazuh-db
metadata:
endpoint: wazuh-db
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
# Custom internal configuration test configurations (t4)
t4_configuration_parameters, t4_configuration_metadata, t4_case_ids = get_test_cases_data(t4_cases_path)

local_internal_options = {'remoted.shared_reload': '20', 'remoted.request_timeout': '30'}
local_internal_options = {'remoted.shared_reload': '20', 'remoted.request_timeout': '30',
'wazuh_db.commit_time_max': '30', 'wazuh_db.worker_pool_size': '16'}


@pytest.mark.tier(level=0)
Expand Down

0 comments on commit e772f22

Please sign in to comment.