Fixed check_log_errors
function of unattended pytest
#2954
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The aim of this PR is to fix the
test_check_log_errors
function of thetest_unattended.py
pytest. The following exception has been added in order to make the pipeline not fail by mistake:ERROR: Could not send message through the cluster after '10' attempts
.Also, the checks of the exception have been reworked, and the exceptions have been added to the list for better coding and look.
Related issues:
Tests
🟢 The
Test_unattended_distributed
pipeline has been launched to test the new development. The pipeline succeeded after the change: https://ci.wazuh.info/job/Test_unattended_distributed/700/console🟢 The
Test_unattended
pipeline has been tested launching theTest_unattended_tier
pipeline: if not any(exception in line for exception in exceptions):