Skip to content
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 EPS limit test to Wazuh-QA repository #3151

Closed
wants to merge 218 commits into from
Closed

Conversation

fedepacher
Copy link
Contributor

Related issue
#2947

Description

This PR aims to add a new test to the Wazuh QA repository of the new development of the core team. The EPS limits development reduces the load of events processes by creating a circular buffer.

Testing performed

The following results were obtained by running the test on the local machine.

=================================================== test session starts ===================================================
platform linux -- Python 3.10.4, pytest-7.1.2, pluggy-1.0.0 -- /usr/bin/python3
cachedir: .pytest_cache
metadata: {'Python': '3.10.4', 'Platform': 'Linux-5.15.0-1015-aws-x86_64-with-glibc2.35', 'Packages': {'pytest': '7.1.2', 'py': '1.10.0', 'pluggy': '1.0.0'}, 'Plugins': {'html': '3.1.1', 'testinfra': '5.0.0', 'metadata': '2.0.2'}}
rootdir: /home/qa/wazuh-qa/tests/integration, configfile: pytest.ini
plugins: html-3.1.1, testinfra-5.0.0, metadata-2.0.2
collected 12 items                                                                                                          

tests/integration/test_eps/eps/test_eps.py::test_enabled[5-EPS Limits enable] PASSED                                    [  8%]
tests/integration/test_eps/eps/test_eps.py::test_disabled[5-EPS Limits with maximun value 0] PASSED                     [ 16%]
tests/integration/test_eps/eps/test_eps.py::test_disabled[5-EPS Limits with maximun values null] PASSED                 [ 25%]
tests/integration/test_eps/eps/test_eps.py::test_invalid_value[5-EPS Limits with maximun values over the maximun allowed] PASSED [ 33%]
tests/integration/test_eps/eps/test_eps.py::test_invalid_value[5-EPS Limits with timeframe values over the timeframe allowed] PASSED [ 41%]
tests/integration/test_eps/eps/test_eps.py::test_invalid_value[5-EPS Limits with timeframe value 0] PASSED              [ 50%]
tests/integration/test_eps/eps/test_eps.py::test_invalid_value[5-EPS Limits with maximun and timeframe values 0] PASSED [ 58%]
tests/integration/test_eps/eps/test_eps.py::test_stops_processing_events[simulate_agent0-configure_local_internal_options_eps0-EPS Limits stop processing events] PASSED [ 66%]
tests/integration/test_eps/eps/test_eps.py::test_start_queuing_events_when_limit_reached[simulate_agent0-configure_local_internal_options_eps0-EPS Limits start queueing events] PASSED [ 75%]
tests/integration/test_eps/eps/test_eps.py::test_start_dropping_events_when_queue_full[simulate_agent0-configure_local_internal_options_eps0-EPS Limits start dropping events] PASSED [ 83%]
tests/integration/test_eps/eps/test_eps.py::test_process_old_events_instead_new_events[simulate_agent0-configure_local_internal_options_eps0-EPS Limits process old events instead of new ones] PASSED [ 91%]
tests/integration/test_eps/eps/test_eps.py::test_disabled_eps[simulate_agent0-configure_local_internal_options_eps0-EPS Limits disables] PASSED [100%]

======================================================== 12 passed in 258.28s (0:04:18) ========================================================

Tester Test path Jenkins Local OS Commit Notes
@fedepacher (Developer) wazuh-qa/tests/integration ⚫⚫⚫ 🟢🟢🟢 1bb3233 Nothing to highlight

jmv74211 and others added 25 commits June 21, 2022 11:10
Remove `integrity_sync` data in stable phase
The previous one seems to have had a bug reported here jitterbit/get-changed-files#11
…t-simulator

Add 'force reconnect' feature to agent_simulator
@TomasTurina TomasTurina linked an issue Aug 8, 2022 that may be closed by this pull request
5 tasks
@fedepacher fedepacher changed the base branch from master to 4.4 August 8, 2022 15:43
@fedepacher fedepacher closed this Aug 17, 2022
@fedepacher fedepacher deleted the 2947-eps-limit-test branch August 17, 2022 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integration tests: Add new eps limit configuration
6 participants