-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Related
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-certs-tool integration tests
- Verify that certificates are correctly generated using a specific valid config.yml
- Verify that the resulting wazuh-install-files.tar file is created
- Verify that all expected certificates and files are included inside the tar file
- Verify error handling when using an invalid or malformed config.yml
- Verify that the tool fails gracefully when required configuration values are missing
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