From 811810ae9c0437a2f4a37117267ea8e3343c0f54 Mon Sep 17 00:00:00 2001 From: suchita-g Date: Thu, 30 May 2024 23:25:48 +0530 Subject: [PATCH] Fixes test_ocs_operator_is_not_present for utilizing custom namespace Signed-off-by: suchita-g In Test case test_ocs_operator_is_not_present the use of namespace "openshift-storage" is hardcoded, hence this test is failing on platform where custom name is used for ODF deployment, like ROSA/AWS HCP Fix for: https://github.com/red-hat-storage/ocs-ci/issues/9876 Signed-off-by: suchita-g --- ocs_ci/ocs/ui/validation_ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocs_ci/ocs/ui/validation_ui.py b/ocs_ci/ocs/ui/validation_ui.py index 65a7b5d6af7c..dd2f774eeb9c 100644 --- a/ocs_ci/ocs/ui/validation_ui.py +++ b/ocs_ci/ocs/ui/validation_ui.py @@ -627,7 +627,7 @@ def verify_odf_without_ocs_in_installed_operator(self) -> tuple: logger.info("Navigating to Installed Operator Page") self.navigate_installed_operators_page() - self.select_namespace(project_name="openshift-storage") + self.select_namespace(project_name=config.ENV_DATA["cluster_namespace"]) logger.info("Searching for Openshift Data Foundation Operator") odf_operator_presence = self.wait_until_expected_text_is_found(