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

Fixed check_log_errors function of unattended pytest #2954

Conversation

davidcr01
Copy link
Contributor

@davidcr01 davidcr01 commented May 17, 2024

Related issue
#2952

Description

The aim of this PR is to fix the test_check_log_errors function of the test_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 the Test_unattended_tier pipeline: if not any(exception in line for exception in exceptions):

@davidcr01 davidcr01 requested a review from a team May 17, 2024 14:03
@davidcr01 davidcr01 self-assigned this May 17, 2024
@davidcr01 davidcr01 linked an issue May 17, 2024 that may be closed by this pull request
3 tasks
@teddytpc1 teddytpc1 merged commit 1c5d482 into 4.8.0 May 17, 2024
4 checks passed
@teddytpc1 teddytpc1 deleted the bug/2952-fix-test_unattended-and-test_unattended_distributed-pytests branch May 17, 2024 15:25
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.

Fix Test_unattended and Test_unattended_distributed pytests
3 participants