From a309162ac4b0115eb32b83689991def6a1a6a784 Mon Sep 17 00:00:00 2001 From: Suchita Gatfane Date: Fri, 31 May 2024 18:54:21 +0530 Subject: [PATCH] Fix of test_ocs_operator_is_not_present for utilizing custom namespace (#9877) 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 65a7b5d6af7..dd2f774eeb9 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(