-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Audit Buffer IT support #4227
Conversation
tests/integration/test_fim/test_files/test_audit_buffer/test_audit_buffer_configuration.py
Show resolved
Hide resolved
tests/integration/test_fim/test_files/test_file_limit/data/wazuh_conf_no_limit.yaml
Outdated
Show resolved
Hide resolved
tests/integration/test_fim/test_files/test_audit_buffer/test_audit_buffer_over_time.py
Outdated
Show resolved
Hide resolved
tests/integration/test_fim/test_files/test_audit_buffer/test_audit_buffer_over_time.py
Outdated
Show resolved
Hide resolved
tests/integration/test_fim/test_files/test_audit_buffer/test_audit_buffer_over_time.py
Outdated
Show resolved
Hide resolved
...gration/test_fim/test_files/test_audit_buffer/data/test_cases/cases_audit_buffer_values.yaml
Outdated
Show resolved
Hide resolved
tests/integration/test_fim/test_files/test_file_limit/data/wazuh_conf_file_limit_disabled.yaml
Outdated
Show resolved
Hide resolved
@pytest.mark.parametrize('test_folders', [test_folders], ids='', scope='module') | ||
@pytest.mark.parametrize('configuration, metadata', zip(t2_configurations, t2_configuration_metadata), | ||
ids=t2_test_case_ids) | ||
def test_audit_buffer_overflown(configuration, metadata, test_folders, set_wazuh_configuration, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The name was changed.
tests/integration/test_fim/test_files/test_audit_buffer/test_audit_buffer_over_time.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could some tests be unified for simplification? For example, default
and values
could go in the same, and one of the values to test could be the default.
...gration/test_fim/test_files/test_audit_buffer/data/test_cases/cases_audit_buffer_values.yaml
Show resolved
Hide resolved
PR has unverified commits caused by changed Github key. They cannot be fixed due to merge commits, so is dropped. New PR #4399 has been created. |
Description
This Issue aims to add IT support for the new Audit whodata buffer. This is managed by the
whodata->queue_size
tag that limits the amount of audit events that are received by syscheck. When the queue is full, events are dropped and the files modification are detected through scheduled mode instead of whodata.Added
test_audit_buffer_configuration.py
module containing 7 cases related to queue_size configuration valuestest_audit_buffer_behavior.py
module containing 2 cases related to queue_size basic behaviortest_audit_buffer_over_time.py
module containing 2 cases related to queue_size's behavior in relation tomax_eps
Changed
test_file_limit
's conf file to different files to avoid duplicated and skipped casesTesting performed