diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c67e0c56d..b55b1e1d68 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. ## [4.8.1] - TBD +### Changed + +- Fix test_consistency_initial_scans by adding a 30-minute wait before collecting vulnerabilities. ([#5507](https://github.com/wazuh/wazuh-qa/pull/5507)) \- (Tests) + ## [4.8.0] - 12/06/2024 ### Added diff --git a/tests/end_to_end/test_vulnerability_detector/test_vulnerability_detector.py b/tests/end_to_end/test_vulnerability_detector/test_vulnerability_detector.py index 1c50c90194..238b791679 100644 --- a/tests/end_to_end/test_vulnerability_detector/test_vulnerability_detector.py +++ b/tests/end_to_end/test_vulnerability_detector/test_vulnerability_detector.py @@ -71,8 +71,11 @@ from wazuh_testing.end_to_end.waiters import wait_until_vd_is_updated from wazuh_testing.tools.system import HostManager + pytestmark = [pytest.mark.e2e, pytest.mark.vulnerability_detector, pytest.mark.tier0] +# Wazuh Indexer abuseControl timeout set to 30 minutes (1800 seconds) +MINIMUM_TIMEOUT_RESCAN = 1800 AGENTS_SCANNED_FIRST_SCAN = [] FIRST_SCAN_TIME = None @@ -317,6 +320,9 @@ def test_first_syscollector_scan( "Syscollector scan not started in any agent. Check agent logs for more information" ) + logging.critical("Waiting 30 minutes to avoid Indexer abuseControl.") + time.sleep(MINIMUM_TIMEOUT_RESCAN) + logging.critical("Waiting until agent all agents have been scanned.") time.sleep(TIMEOUT_PER_AGENT_VULNERABILITY_FIRST_SCAN * len(AGENTS_SCANNED_FIRST_SCAN))