-
Notifications
You must be signed in to change notification settings - Fork 32
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
E2E tests: Add an initial validation stage #3142
Comments
Update 02/08/2022I have researched Ansible roles, handlers, and others. Also, I have created a basic structure to implement the refactor. Update 04/08/2022I have changed the directory structure:
Before a test, a group of tests, or all tests are executed, a fixture that validates the environment will be executed; it (which has session scope) uses the role path and the inventory path to execute the corresponding tasks. The validation tasks will be executed in some/all hosts depending on the groups defined in the inventory:
All of the above options can be combined. |
Update 05/08/2022I tested the proposed solution from above, but it doesn't work as expected. So, I have been researched further and I tried this solution:
This way the pipeline that we will create in the future should only execute the test/s using I still have some doubts about the task itself, such as what would be the validations to be performed since, for example, in the role of Linux agent and manager tasks are shared, so I see the need to create a role more called "common". |
Update 15/08/2022Running the tests with the validation stage already developed I realized that:
This change allows to run a general validation prior to all tests (according to the tests that were selected to run) and then run (if any) the particular validation tasks for each test. So, the validation phase is divided into 4 steps:
The validation phase was executed beside the following tests:
Remaining tasks
|
Tasks to check filebeat-indexer and controller-indexer connections. New role related to Wazuh services added. Some changes related to linter corrections.
Update 16/08/2022Done:
Remain:
test_fim execution (6 test cases) |
The alert timestamp was corrected to allow for negative and positive offsets. Timeout for a task has been removed because it already had an implicit timeout.
Now this phase deletes the generated file at the end of the execution.
Debug tasks removed. New task to check Wazuh components added. The error when setting a variable used to search for failures was fixed.
This change allows no stopping all execution when 1 specific validation fails.
Description
The E2E tests have been developed in #2872 with the goal of being run manually. However, after such development, we have picked up a number of necessary changes that are common or impact all E2E tests.
This task aims to add an initial validation stage to E2E tests.
Initial validation stage
The initial validation stage will check via Ansible the following requirements on the managed nodes:
The text was updated successfully, but these errors were encountered: