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

Update cluster logs in reliability tests #2772

Merged
merged 1 commit into from
May 24, 2022
Merged

Conversation

Selutario
Copy link
Contributor

@Selutario Selutario commented Apr 7, 2022

Related issue
Closes #2763

Description

As explained in #2763, some cluster logs changed during the development of this issue:

This PR updates the Reliability tests were those cluster logs were expected.

Logs example

============================================================================================ test session starts ============================================================================================
platform linux -- Python 3.8.10, pytest-5.0.0, py-1.8.2, pluggy-0.13.1
rootdir: /home/selu/Git/wazuh-qa/tests
plugins: metadata-1.10.0, html-3.1.1, testinfra-5.0.0, tavern-1.2.2, pep8-1.0.6, cov-2.10.0, asyncio-0.14.0
collected 4 items                                                                                                                                                                                           

reliability/test_cluster/test_cluster_logs/test_cluster_connection/test_cluster_connection.py .                                                                                                       [ 25%]
reliability/test_cluster/test_cluster_logs/test_cluster_error_logs/test_cluster_error_logs.py .                                                                                                       [ 50%]
reliability/test_cluster/test_cluster_logs/test_cluster_logs_order/test_cluster_logs_order.py .                                                                                                       [ 75%]
reliability/test_cluster/test_cluster_logs/test_cluster_sync/test_cluster_sync.py .                                                                                                                   [100%]

------------------------------------------------------------------- generated html file: file:///home/selu/Git/wazuh-qa/tests/report.html -------------------------------------------------------------------
========================================================================================= 4 passed in 0.10 seconds ==========================================================================================

Tests

  • Proven that tests pass when they have to pass.
  • Proven that tests fail when they have to fail.
  • Python codebase satisfies PEP-8 style style guide. pycodestyle --max-line-length=120 --show-source --show-pep8 file.py.
  • Python codebase is documented following the Google Style for Python docstrings.
  • The test is documented in wazuh-qa/docs.
  • provision_documentation.sh generate the docs without errors.

@Selutario Selutario self-assigned this Apr 7, 2022
AdriiiPRodri
AdriiiPRodri previously approved these changes Apr 8, 2022
@AdriiiPRodri
Copy link
Contributor

Blocked until wazuh/wazuh#10771 has merged.

@Selutario
Copy link
Contributor Author

Status update

Here there are artifacts whre cluster logs are updated according to this PR wazuh/wazuh#13065:
refactored_integrity.zip

Results after running reliability tests for those artifacts:

============================================================================================ test session starts ============================================================================================
platform linux -- Python 3.8.10, pytest-5.0.0, py-1.8.2, pluggy-0.13.1
rootdir: /home/selu/Git/wazuh-qa
plugins: metadata-1.10.0, html-3.1.1, testinfra-5.0.0, tavern-1.2.2, pep8-1.0.6, cov-2.10.0, asyncio-0.14.0
collected 6 items                                                                                                                                                                                           

tests/reliability/test_cluster/test_cluster_logs/test_cluster_connection/test_cluster_connection.py .                                                                                                 [ 16%]
tests/reliability/test_cluster/test_cluster_logs/test_cluster_error_logs/test_cluster_error_logs.py .                                                                                                 [ 33%]
tests/reliability/test_cluster/test_cluster_logs/test_cluster_master_logs_order/test_cluster_master_logs_order.py .                                                                                   [ 50%]
tests/reliability/test_cluster/test_cluster_logs/test_cluster_sync/test_cluster_sync.py .                                                                                                             [ 66%]
tests/reliability/test_cluster/test_cluster_logs/test_cluster_task_order/test_cluster_task_order.py .                                                                                                 [ 83%]
tests/reliability/test_cluster/test_cluster_logs/test_cluster_worker_logs_order/test_cluster_worker_logs_order.py .                                                                                   [100%]

---------------------------------------------------------------------- generated html file: file:///home/selu/Git/wazuh-qa/report.html ----------------------------------------------------------------------
=================================================================================== 6 passed, 2 warnings in 0.17 seconds ====================================================================================

@juliamagan
Copy link
Member

juliamagan commented May 23, 2022

24/05/2022

Testing

We have used the artifacts attached here

Results
R1 🟢
R2 🟢
R3 🟢

Copy link
Member

@juliamagan juliamagan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jmv74211 jmv74211 merged commit 7986f19 into master May 24, 2022
@jmv74211 jmv74211 deleted the 2763-update-cluster-logs branch May 24, 2022 16:03
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.

Update cluster logs in reliability tests
4 participants