Skip to content

Commit

Permalink
enhancement(#5219): Cycles and wait adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
pro-akim committed Apr 26, 2024
1 parent 57a71de commit d7edbac
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion deployability/modules/testing/tests/helpers/central.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def perform_action_and_scan(host_params, action_callback) -> dict:
'removed': ['filebeat'],
'modified': []
},
'/root': {'added': ['trustdb.gpg', 'lesshst'], 'removed': ['filebeat'], 'modified': []},
'/root': {'added': ['trustdb.gpg', 'lesshst', 'ssh'], 'removed': ['filebeat'], 'modified': []},
'/usr/sbin': {
'added': [
'update-catalog', 'applygnupgdefaults', 'addgnupghome', 'install-sgmlcatalog', 'update-xmlcatalog'
Expand Down
2 changes: 1 addition & 1 deletion deployability/modules/testing/tests/helpers/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def areDashboardNodes_working(wazuh_api: WazuhAPI) -> str:
logger.error(f'The dashboard API returned: {response.status_code}')

@staticmethod
def isDashboard_port_opened(inventory_path, wait=10, cycles=10):
def isDashboard_port_opened(inventory_path, wait=10, cycles=50):
"""
Check if dashboard port is open
Expand Down
2 changes: 1 addition & 1 deletion deployability/modules/testing/tests/helpers/indexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def isIndexCluster_working(wazuh_api: WazuhAPI, inventory_path) -> bool:


@staticmethod
def isIndexer_port_opened(inventory_path, wait=10, cycles=10):
def isIndexer_port_opened(inventory_path, wait=10, cycles=50) -> bool:
"""
Check if indexer port is open
Expand Down
6 changes: 3 additions & 3 deletions deployability/modules/testing/tests/helpers/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def assert_results(result) -> None:


@staticmethod
def isWazuhAPI_port_opened(inventory_path, wait=10, cycles=10) -> bool:
def isWazuhAPI_port_opened(inventory_path, wait=10, cycles=50) -> bool:
"""
Check if Manager API port is open
Expand All @@ -251,7 +251,7 @@ def isWazuhAPI_port_opened(inventory_path, wait=10, cycles=10) -> bool:
return False

@staticmethod
def isWazuhAgent_port_opened(inventory_path, wait=10, cycles=10) -> bool:
def isWazuhAgent_port_opened(inventory_path, wait=10, cycles=50) -> bool:
"""
Check if Wazuh Manager Agent port is open
Expand All @@ -276,7 +276,7 @@ def isWazuhAgent_port_opened(inventory_path, wait=10, cycles=10) -> bool:
return False

@staticmethod
def isWazuhAgent_enrollment_port_opened(inventory_path, wait=10, cycles=10) -> bool:
def isWazuhAgent_enrollment_port_opened(inventory_path, wait=10, cycles=50) -> bool:
"""
Check if Wazuh Manager Agent enrollment port is open
Expand Down

0 comments on commit d7edbac

Please sign in to comment.