wazuh / wazuh

Wazuh - The Open Source Security Platform. Unified XDR and SIEM protection for endpoints and cloud workloads.
https://wazuh.com/
Other
11.03k stars 1.67k forks source link

Release 4.8.0 - Beta 2 - System tests #22123

Closed Deblintrake09 closed 8 months ago

Deblintrake09 commented 8 months ago

The following issue aims to run all system tests for the current release candidate, report the results, and open new issues for any encountered errors.

System tests information

Main release candidate issue https://github.com/wazuh/wazuh/issues/22069
Version 4.8.0
Release candidate # Beta 2
Tag https://github.com/wazuh/wazuh-qa/tree/v4.8.0-beta2
Previous system tests issue https://github.com/wazuh/wazuh/issues/21787

Instructions

To run tests in an AWS EC2 virtual environment, the following requirements will need to be met:

Environment EC2
Basic_cluster Ubuntu 22.04.2 LTS C5.XLarge 15GB SSD
Big_cluster_40_agents Ubuntu 22.04.2 LTS T3.Large 60GB SSD
Agentless_cluster Ubuntu 22.04.2 LTS T3.Large 30GB SSD
Four_manager_disconnected_node Ubuntu 22.04.2 LTS T3.Large 30GB SSD
One_manager_agent Ubuntu 22.04.2 LTS T3.Large 30GB SSD
Manager_agent Ubuntu 22.04.2 LTS T3.Large 30GB SSD
Enrollment_cluster Ubuntu 22.04.2 LTS T3.Large 30GB SSD
Basic_environment Ubuntu 22.04.2 LTS T3.Large 30GB SSD

These requirements should be requested to the @wazuh/cicd team via https://github.com/wazuh/internal-devel-requests.

For further information, check https://github.com/wazuh/wazuh-qa/tree/master/tests/system/README.md

Test report procedure

All individual test checks must be marked as:
Pass The test ran successfully.
Xfail The test was expected to fail and it failed. It must be properly justified and reported in an issue.
Skip The test was not run. It must be properly justified and reported in an issue.
Fail The test failed. A new issue must be opened to evaluate and address the problem.
All test results must have one the following statuses:
:green_circle: All checks passed.
:red_circle: There is at least one failed check.
:yellow_circle: There is at least one expected fail or skipped test and no failures.

Any failing test must be properly addressed with a new issue, detailing the error and the possible cause. It must be included in the Fixes section of the current release candidate main issue.

Any expected fail or skipped test must have an issue justifying the reason. All auditors must validate the justification for an expected fail or skipped test.

An extended report of the test results must be attached as a zip or txt. This report can be used by the auditors to dig deeper into any possible failures and details.

Conclusion :red_circle:

Details on execution can be found here.

Auditors validation

The definition of done for this one is the validation of the conclusions and the test results from all auditors.

All checks from below must be accepted in order to close this issue.

Deblintrake09 commented 8 months ago

Test results

Reports
[one_manager_agent.zip](https://github.com/wazuh/wazuh/files/14406664/one_manager_agent.zip) [four_manager_disconnected_node.zip](https://github.com/wazuh/wazuh/files/14406663/four_manager_disconnected_node.zip) [agentless_cluster.zip](https://github.com/wazuh/wazuh/files/14418047/agentless_cluster.zip) [enrollment_cluster.zip](https://github.com/wazuh/wazuh/files/14409525/enrollment_cluster.zip) [manager_agent.zip](https://github.com/wazuh/wazuh/files/14408831/manager_agent.zip) [basic_cluster.zip](https://github.com/wazuh/wazuh/files/14408688/basic_cluster.zip) [basic_environment.zip](https://github.com/wazuh/wazuh/files/14417788/basic_environment.zip) [big_cluster_40_agents.zip](https://github.com/wazuh/wazuh/files/14423194/big_cluster_40_agents.zip)

Test name Status Pass XFail/Skip Fail Issues Ref.
One Manager Agent
1 test_cluster/test_correct_merged_file_generation/test_correct_merged_file_generation.py :green_circle: 12 0 0
2 test_fim/test_files/test_files_cud.py :green_circle: 9 0 0
3 test_fim/test_synchronization/test_synchronization.py :green_circle: 6 0 6
Four Manager Disconnected Node
4 test_cluster/test_agent_groups/test_agent_groups_new_cluster_node.py :green_circle: 2 0 0
Agentless Cluster
5 test_cluster/test_integrity_sync/test_integrity_sync.py :red_circle: 0 0 4 https://github.com/wazuh/wazuh-qa/issues/5038
6 test_cluster/test_ruleset_sync_status/test_ruleset_sync_status.py :green_circle: 1 0 0
7 test_jwt_invalidation/test_change_rbac_mode.py :green_circle: 4 0 0
8 test_jwt_invalidation/test_change_security_resources.py :green_circle: 4 0 0
9 test_jwt_invalidation/test_disconnected_nodes.py :green_circle: 1 0 0
10 test_jwt_invalidation/test_revoke_endpoint.py :green_circle: 6 0 0
11 test_jwt_invalidation/test_update_password.py :green_circle: 4 0 0
Enrollment Cluster
12 test_cluster/test_agent_enrollment/test_agent_enrollment.py :green_circle: 1 0
13 test_cluster/test_agent_groups/test_agent_default_group_added.py :red_circle: 2 1 0 https://github.com/wazuh/wazuh-qa/issues/5041
14 test_cluster/test_agent_groups/test_assign_agent_group_with_enrollment.py :green_circle: 1 0 0
15 test_cluster/test_agent_groups/test_assign_agent_never_connected_to_group.py :green_circle: 2 0 0
16 test_cluster/test_agent_groups/test_assign_agent_to_a_group_api.py :green_circle: 4 0 0
17 test_cluster/test_agent_groups/test_assign_agent_to_a_group_by_tool.py :green_circle: 2 0 0
18 test_cluster/test_agent_groups/test_assign_agent_to_a_group.py :green_circle: 4 0 0
19 test_cluster/test_agent_groups/test_assign_groups_guess.py :red_circle: 8 4 0 https://github.com/wazuh/wazuh-qa/issues/5041
20 test_cluster/test_agent_groups/test_agent_groups.py :green_circle: 1 0 0
21 test_cluster/test_agent_groups/test_remove_group.py :green_circle: 10 0 0
22 test_cluster/test_agent_groups/test_group_sync_status.py :green_circle: 27 0 0
23 test_cluster/test_agent_groups/test_group_hash.py :red_circle: 7 1 0 https://github.com/wazuh/wazuh-qa/issues/5041
Manager Agent
24 test_active_response_log_format/test_active_response_log_format.py :red_circle: 2 0 1 https://github.com/wazuh/wazuh-qa/issues/5031
Basic Cluster
25 test_cluster/test_agent_info_sync/test_agent_info_sync.py :green_circle: 2 0 0
26 test_cluster/test_agent_key_polling/test_agent_key_polling.py :red_circle: 0 0 1 https://github.com/wazuh/wazuh-qa/issues/5030
27 test_cluster/test_agent_files_deletion/test_agent_files_deletion.py :green_circle: 1 0 0
28 test_multigroups/test_multigroups.py :green_circle: 4 0 0
29 test_cluster/test_agent_groups/test_agent_groups_forced_change.py :green_circle: 3 0 0
Big Cluster 40 Agents
30 test_cluster/test_agent_groups/test_groups_sync_default.py :green_circle: 2 0 0
31 test_cluster/test_agent_groups/test_groups_sync_time.py :red_circle: 1 1 0 https://github.com/wazuh/wazuh-qa/issues/5042
32 test_shutdown_message/test_shutdown_message.py :red_circle: 0 1 0 https://github.com/wazuh/wazuh-qa/issues/5042
Basic Environment
33 test_agent_auth/test_agent_auth.py :red_circle: 4 16 0 https://github.com/wazuh/wazuh-qa/issues/5036
34 test_enrollment/test_enrollment.py :red_circle: 10 10 0 https://github.com/wazuh/wazuh-qa/issues/5036

Conclusion :red_circle:

QU3B1M commented 8 months ago

LGTM!