-
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
Refactor integratord test_integratord_read_json_file_deleted
#3540
Conversation
@@ -293,12 +321,12 @@ def pytest_addoption(parser): | |||
help="run tests using a specific WPK package path" | |||
) | |||
parser.addoption( | |||
"--integration-api-key", | |||
"--slack-webhook-url", |
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.
Does this change imply new modifications in jenkins ITs repository?
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.
daemons.reverse() | ||
for daemon in daemons: | ||
logger.debug(f"Stopping {daemon}") | ||
control_service('stop', daemon=daemon) |
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.
You are modifying a global fixture, so you have to guarantee that this change does not break anything.
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.
IT Executions: #3540 (comment)
deps/wazuh_testing/wazuh_testing/modules/integratord/__init__.py
Outdated
Show resolved
Hide resolved
Before merging these changes, it is necessary to merge this PR in the "wazuh-jenkins" repository.
Also, it is necessary to merge the backport to 4.5 and create a backport of this PR to |
e5daf81
to
b50ca53
Compare
Wazuh Jenkins dependencyThis PR depends on some changes to be merged in the
|
Blocked by
|
7b78001
to
13d40bc
Compare
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.
Please update branches and launch the tests to check that everything works as expected.
13d40bc
to
5b4a56c
Compare
ee35dd5
to
13d40bc
Compare
After merging
|
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.
LGTM
Description
This PR aims to add some changes to the development made by @mauromalara in this PR.
Added
tests/integration/test_integratord/test_alerts_reading.py
: All modules were unified in this one and several changes were applied in the tests functions and documentation.Updated
deps/wazuh_testing/modules/analysisd/__init__.py
: Callback added to detect its initialization.deps/wazuh_testing/modules/integratord/__init__.py
: Callbacks modified to fix the tests.deps/wazuh_testing/modules/integratord/event_monitor.py
: Callback functions modified and documentation improved.deps/wazuh_testing/wazuh_testing/tools/__init__.py
: Integratord socket added.tests/integration/conftest.py
: Fixture improved and Slack webhook parameter added. Daemons handler modified and wrapper with 'function' scope added.tests/integration/test_integratord/conftest.py
: Minor improvements.tests/integration/test_integratord/data/configuration/configuration_alerts_reading.yaml
: Configuration template modified to change the integration from VTotal to Slack.tests/integration/test_integratord/data/test_cases/cases_integratord_change_inode_alert.yaml
: Virustotal integration replaced.tests/integration/test_integratord/data/test_cases/cases_integratord_read_invalid_json_alerts.yaml
: Virustotal integration replaced.tests/integration/test_integratord/data/test_cases/cases_integratord_read_valid_json_alerts.yaml
: Virustotal integration replaced.Deleted
tests/integration/test_integratord/data/test_cases/cases_integratord_read_json_file_deleted.yaml
: Test case deleted because it was duplicated bytest_change_inode_alert
tests/integration/test_integratord/test_integratord_read_json_file_deleted.py
: Test deleted because it was duplicated bytest_change_inode_alert
tests/integration/test_integratord/test_integratord_change_inode_alert.py
: All modules were unified intest_alerts_reading.py
tests/integration/test_integratord/test_integratord_read_json_alerts.py
: All modules were unified intest_alerts_reading.py
tests/integration/test_integratord/test_integratord_read_json_alerts.py
: All modules were unified intest_alerts_reading.py
Testing performed