Skip to content

Commit

Permalink
Increase timout for validation Submariner for IBM Cloud ROKS
Browse files Browse the repository at this point in the history
Signed-off-by: Petr Balogh <[email protected]>
  • Loading branch information
petr-balogh committed Dec 13, 2024
1 parent 80630c8 commit f482b01
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions ocs_ci/ocs/acm/acm.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,13 @@ def submariner_validation_ui(self):
This is a mandatory pre-check for Regional DR.
"""

timeout = 600
ibm_cloud_managed = (
config.ENV_DATA["platform"] == constants.IBMCLOUD_PLATFORM
and config.ENV_DATA["deployment_type"] == "managed"
)
if ibm_cloud_managed:
timeout = 2100
self.navigate_clusters_page()
cluster_sets_page = self.wait_until_expected_text_is_found(
locator=self.page_nav["cluster-sets"],
Expand All @@ -350,34 +356,34 @@ def submariner_validation_ui(self):
assert self.wait_until_expected_text_is_found(
locator=self.page_nav["connection-status-1"],
expected_text="Healthy",
timeout=600,
timeout=timeout,
), "Connection status 1 is unhealthy for Submariner"
assert self.wait_until_expected_text_is_found(
locator=self.page_nav["connection-status-2"],
expected_text="Healthy",
timeout=600,
timeout=timeout,
), "Connection status 2 is unhealthy for Submariner"
log.info("Checking agent status of both the imported clusters")
assert self.wait_until_expected_text_is_found(
locator=self.page_nav["agent-status-1"],
expected_text="Healthy",
timeout=600,
timeout=timeout,
), "Agent status 1 is unhealthy for Submariner"
assert self.wait_until_expected_text_is_found(
locator=self.page_nav["agent-status-2"],
expected_text="Healthy",
timeout=600,
timeout=timeout,
), "Agent status 2 is unhealthy for Submariner"
log.info("Checking if nodes of both the imported clusters are labeled or not")
assert self.wait_until_expected_text_is_found(
locator=self.page_nav["node-label-1"],
expected_text="Nodes labeled",
timeout=600,
timeout=timeout,
), "First gateway node label check did not pass for Submariner"
assert self.wait_until_expected_text_is_found(
locator=self.page_nav["node-label-2"],
expected_text="Nodes labeled",
timeout=600,
timeout=timeout,
), "Second gateway node label check did not pass for Submariner"
self.take_screenshot()
log.info("Submariner is healthy, check passed")
Expand Down

0 comments on commit f482b01

Please sign in to comment.