wazuh / wazuh-qa

Wazuh - Quality Assurance
GNU General Public License v2.0
60 stars 30 forks source link

Integration test Wazuh-DB backup config fails #5263

Closed cborla closed 2 weeks ago

cborla commented 2 weeks ago
Wazuh version Component Install type Related issue Related PR
≤ 4.7.4 Wazuh-DB Manager https://github.com/wazuh/wazuh/issues/22925 https://github.com/wazuh/wazuh/pull/22933

We've found that Wazuh-DB integration test fails test_wdb_backup_config

Impact

This will cause the test to fail as long as they include the PR:

Error Logs

test_wazuh_db/test_wdb_backup_configs.py::test_wdb_backup_configs[get_configuration0-/var/ossec/backup/db] FAILED [ 94%]
E   Failed: Error: A file was found in backups_path. No backups where expected when enabled is 'no'.
E   Failed: Error: Found the following files in backups_path: global.db-backup-2024-04-18-02:08:50-pre_upgrade.gz. No backups were expected when enabled is 'no'.

Hypothesis

cborla commented 2 weeks ago

The test is working after the rebase. link

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
- generated html file: file:///tmp/Test_integration_B46873_20240418182404/report.html -
============ 127 passed, 1 skipped, 2 warnings in 498.23s (0:08:18) ============