Rename vulnerability states index for E2E Vulnerability tests #5402
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The vulnerability states index was renamed in wazuh/wazuh#23274. This PR adapts E2E tests to this change.
To address this issue, we propose tracking the cluster name through the HostManager class. Initially, this parameter will be included in the inventory during the provisioning stage, with a default value of wazuh. Before performing any operation through the vulnerability index, the system will check the currently defined cluster name in the inventory.
This approach should be refactored as we develop a new framework. The goal is to maintain updated environment information through the HostManager object or a similar mechanism, allowing easy tracking of the cluster name.
Testing performed
Build: https://ci.wazuh.info/job/Test_e2e_system/287/console
Result analysis