Skip to content

Commit

Permalink
Merge pull request #5507 from wazuh/fix/5501-timeout-avoid-cooldown
Browse files Browse the repository at this point in the history
Force 30 minutes sleep in Vulnerability Detection initial scan to avoid indexer abuse control
  • Loading branch information
juliamagan authored Jun 20, 2024
2 parents 0a9dc21 + aa36bf7 commit 0ed0388
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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))

Expand Down

0 comments on commit 0ed0388

Please sign in to comment.