diff --git a/CHANGELOG.md b/CHANGELOG.md index 25cacd5ead..9bbdb6135a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -64,6 +64,7 @@ All notable changes to this project will be documented in this file. ### Fixed +- Increase E2E Vulnerability detection change manager test timeout ([#5414](https://github.com/wazuh/wazuh-qa/pull/5414)) \- (Tests) - Fix filter vulnerabilities function in case of multiple packages are used ([#5419](https://github.com/wazuh/wazuh-qa/pull/5419)) \- (Framework) - Remove false positive from E2E Vulnerability Detection tests ([#5369](https://github.com/wazuh/wazuh-qa/pull/5369)) \- (Framework) - Fix multigroups guess system test ([#5396](https://github.com/wazuh/wazuh-qa/pull/5396)) \- (Tests) 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 d12359f5d8..1c50c90194 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 @@ -66,6 +66,7 @@ from wazuh_testing.end_to_end.utils import (extract_case_info, get_case_ids, load_test_cases) from wazuh_testing.end_to_end.vulnerability_detector import (TIMEOUT_PER_AGENT_VULNERABILITY_FIRST_SCAN, + PACKAGE_VULNERABILITY_SCAN_TIME, get_vulnerabilities_from_states_by_agent) from wazuh_testing.end_to_end.waiters import wait_until_vd_is_updated from wazuh_testing.tools.system import HostManager @@ -77,7 +78,6 @@ FIRST_SCAN_TIME = None FIRST_SCAN_VULNERABILITIES_INDEX = {} AGENT_REGISTRATION_TIMEOUT = 15 -PACKAGE_VULNERABILITY_SCAN_TIME = 120 VULNERABILITY_DETECTION_E2E_EXPECTED_ERRORS = [ r"Invalid ID \d{3} for the source", @@ -698,7 +698,7 @@ def test_install_vulnerable_package_when_agent_down(self, host_manager, request, host_manager.control_environment("start", ["agent"], parallel=True) time.sleep(AGENT_REGISTRATION_TIMEOUT * len(AGENTS_SCANNED_FIRST_SCAN)) - time.sleep(VD_E2E_TIMEOUT_SYSCOLLECTOR_SCAN + PACKAGE_VULNERABILITY_SCAN_TIME) + time.sleep(VD_E2E_TIMEOUT_SYSCOLLECTOR_SCAN + PACKAGE_VULNERABILITY_SCAN_TIME * len(AGENTS_SCANNED_FIRST_SCAN)) package_data = [body["package"]] @@ -787,7 +787,7 @@ def test_change_agent_manager(self, permutate_agents_managers, request, precondi ) # Wait for Syscollector and VD Scan - time.sleep(VD_E2E_TIMEOUT_SYSCOLLECTOR_SCAN + PACKAGE_VULNERABILITY_SCAN_TIME) + time.sleep(VD_E2E_TIMEOUT_SYSCOLLECTOR_SCAN + PACKAGE_VULNERABILITY_SCAN_TIME * len(AGENTS_SCANNED_FIRST_SCAN)) package_data = [body["package"]] @@ -916,7 +916,7 @@ def test_vulnerability_detector_scans_cases(self, request, preconditions, body, [Evidence("operation_results", operations_result)], ) # Wait for syscollector and VD scan - time.sleep(VD_E2E_TIMEOUT_SYSCOLLECTOR_SCAN + PACKAGE_VULNERABILITY_SCAN_TIME) + time.sleep(VD_E2E_TIMEOUT_SYSCOLLECTOR_SCAN + PACKAGE_VULNERABILITY_SCAN_TIME * len(AGENTS_SCANNED_FIRST_SCAN)) if "to" in body["package"]: package_data = [body["package"]["to"], body["package"]["from"]]