From 3b880961884cf3b15283295a8b0243b9eca83416 Mon Sep 17 00:00:00 2001 From: Parag Kamble Date: Sun, 24 Sep 2023 01:17:44 +0530 Subject: [PATCH] Fixed some tests for tier1 and tier2 marker Signed-off-by: Parag Kamble --- tests/manage/mcg/ui/test_mcg_ui.py | 4 +++- .../pv_services/test_overprovision_level_policy_control.py | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/manage/mcg/ui/test_mcg_ui.py b/tests/manage/mcg/ui/test_mcg_ui.py index 2db207fabfa..603e174ef98 100644 --- a/tests/manage/mcg/ui/test_mcg_ui.py +++ b/tests/manage/mcg/ui/test_mcg_ui.py @@ -333,7 +333,9 @@ def test_obc_creation_and_deletion( obc_ui_obj = ObjectBucketClaimsTab() - storageclass = storageclass_name(constants.OCS_COMPONENTS_MAP["rgw"]) + if storageclass == constants.DEFAULT_STORAGECLASS_RGW: + storageclass = storageclass_name(constants.OCS_COMPONENTS_MAP["rgw"]) + obc_ui_obj.create_obc_ui(obc_name, storageclass, bucketclass) assert obc_page.verify_current_page_resource_status( diff --git a/tests/manage/pv_services/test_overprovision_level_policy_control.py b/tests/manage/pv_services/test_overprovision_level_policy_control.py index fb4d70cf70e..9e667770f10 100644 --- a/tests/manage/pv_services/test_overprovision_level_policy_control.py +++ b/tests/manage/pv_services/test_overprovision_level_policy_control.py @@ -116,7 +116,10 @@ def test_over_provision_level_policy_control( 9.Create New PVC with 1G capacity and verify it is working [8Gi > 1Gi + 6Gi] """ - sc_name = storageclass_name(sc_interface) + if sc_interface not in constants.OCS_COMPONENTS_MAP: + sc_name = sc_interface + else: + sc_name = storageclass_name(sc_interface) quota_names = { storageclass_name(