From f482b0161493055b1e34a6e3d7a0fc4dabdac04c Mon Sep 17 00:00:00 2001 From: Petr Balogh Date: Mon, 9 Dec 2024 14:47:55 +0100 Subject: [PATCH] Increase timout for validation Submariner for IBM Cloud ROKS Signed-off-by: Petr Balogh --- ocs_ci/ocs/acm/acm.py | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/ocs_ci/ocs/acm/acm.py b/ocs_ci/ocs/acm/acm.py index a7d1b56cefc..e67784c7a0f 100644 --- a/ocs_ci/ocs/acm/acm.py +++ b/ocs_ci/ocs/acm/acm.py @@ -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"], @@ -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")