Skip to content

5.x Automated indexer packages smoke test #786

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

Open
4 tasks
Jorgesnchz opened this issue Apr 11, 2025 · 0 comments
Open
4 tasks

5.x Automated indexer packages smoke test #786

Jorgesnchz opened this issue Apr 11, 2025 · 0 comments
Labels
level/task Task issue type/enhancement Enhancement issue

Comments

@Jorgesnchz
Copy link
Member

Jorgesnchz commented Apr 11, 2025

Description

In light of the recent challenges encountered during the upgrade of Wazuh-Indexer to version 4.11.0 (#729), we propose the development of automated tests for version 5.x. These tests will complement existing automatic installation tests and manual end-to-end (E2E) tests.

The objective of this testing suite is to cover the installation, upgrade, and uninstallation processes of the Wazuh-Indexer component by evaluating various scenarios that may result in both successful and unsuccessful outcomes. It's crucial to document the specific conditions contributing to each outcome and to assess the behavior of the Wazuh-Indexer service under these scenarios.

Functional requirements

  • The package building workflow must incorporate install, uninstall, and upgrade smoke tests.
  • The smoke test should only verify the successful execution of the command using the exit code.
  • The upgrade process should be performed from the most recent published version.
    • Example:
    • v5.0.1 should upgrade from v5.0.0.
    • v5.1.0 should upgrade from the latest available published patch of 5.0.
  • The workflow must be able to infer the latest published patch of any minor version and download the corresponding package.
  • The test covers an upgrade of wazuh-indexer following the upgrade guide.
  • The test covers an upgrade of wazuh-indexer not following the upgrade guide.*
  • The test is automatic.

* The upgrade is performed without stopping the wazuh-indexer service.

Implementation restrictions

  • The development must be integrated within the existing package-building workflow.
  • The test logic is implemented on bash scripts for best portability.

Plan

  • Install test.
  • Upgrade test.
  • Uninstall test.
  • Technical documentation.
@Jorgesnchz Jorgesnchz added level/task Task issue type/enhancement Enhancement issue labels Apr 11, 2025
@wazuhci wazuhci moved this to Backlog in XDR+SIEM/Release 5.0.0 Apr 11, 2025
@Jorgesnchz Jorgesnchz self-assigned this Apr 11, 2025
@wazuhci wazuhci moved this from Backlog to Blocked in XDR+SIEM/Release 5.0.0 Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level/task Task issue type/enhancement Enhancement issue
Projects
Status: Blocked
Development

No branches or pull requests

1 participant