-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Related
https://github.com/wazuh/wazuh-automation/issues/2940
Description
Integration tests
Integration test suites should be defined for each of the Installation Assistant tools (wazuh-certs-tool, wazuh-passwords-tool, and wazuh-install). Each suite must validate that the corresponding tool works correctly end to end, including both successful and error scenarios.
wazuh-install integration tests
-
Verify integration tests for the following installation modes:
- AIO (All-in-One) installation
- Distributed installation
- Offline installation
-
For each installation mode test
- ARM/AMD
- RPM/DEB
-
For each installation mode, validate
- The status of the services
- That certificates are located in the correct paths
- Connectivity between components
- Access for Wazuh API users and Indexer internal users
- Access to the dashboard
Note
Verify expected failures when required installation prerequisites are not met
Unit tests
Unit test must remain in the wazuh-installation-assistant repository, this test need to validate the code structure and the correctness of each method and function.
Note
Since the codebase is written in Bash, using a comprehensive testing framework like those available for other programming languages is more challenging. However, the BATS library can be used to implement these unit tests effectively.
Important
It is important to note that there are currently tests under the tests/ directory, but they are outdated and not compatible with the new codebase. As a result, it is recommended to create the tests from scratch, using the existing tests only as a reference for the type of validations that were previously performed.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status