From 6e09d3d6c2cadc4be0a7facef475ed44f56ad2ce Mon Sep 17 00:00:00 2001 From: Oded Viner Date: Wed, 9 Oct 2024 10:10:45 +0300 Subject: [PATCH 1/2] GSS-BZ-2245068 Add unlabeled pod to openshift-storage ns and check the odf topolgy UI Signed-off-by: Oded Viner --- .../cross_functional/ui/test_odf_topology.py | 22 +++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/tests/cross_functional/ui/test_odf_topology.py b/tests/cross_functional/ui/test_odf_topology.py index 0f9d3b5261f..21fbd801b66 100644 --- a/tests/cross_functional/ui/test_odf_topology.py +++ b/tests/cross_functional/ui/test_odf_topology.py @@ -31,6 +31,8 @@ ) from ocs_ci.utility.utils import ceph_health_check from ocs_ci.utility import prometheus +from ocs_ci.helpers import helpers +from ocs_ci.ocs.ocp import OCP logger = logging.getLogger(__name__) @@ -81,9 +83,7 @@ class TestODFTopology(object): @bugzilla("2233027") @polarion_id("OCS-4901") def test_validate_topology_configuration( - self, - setup_ui_class, - teardown_depl_busybox, + self, setup_ui_class, teardown_depl_busybox, pvc_factory, teardown_factory ): """ Test to validate configuration of ODF Topology for internal and external deployments, @@ -113,7 +113,21 @@ def test_validate_topology_configuration( OCS-4906 Add deployment to ODF cluster and verify that Topology represents added deployment OCS-4907 Delete deployment from ODF cluster and verify that Topology represents that deployment """ - + pvc_obj = pvc_factory( + interface=constants.CEPHBLOCKPOOL, + access_mode=constants.ACCESS_MODE_RWO, + status=constants.STATUS_BOUND, + project=OCP( + kind="Project", namespace=constants.OPENSHIFT_STORAGE_NAMESPACE + ), + ) + pod_obj = helpers.create_pod( + interface_type=constants.CEPHBLOCKPOOL, + pvc_name=pvc_obj.name, + namespace=pvc_obj.namespace, + pod_dict_path=constants.NGINX_POD_YAML, + ) + teardown_factory(pod_obj) topology_tab = PageNavigator().nav_odf_default_page().nav_topology_tab() topology_deviation = topology_tab.validate_topology_configuration() From 2200d6ae434bd415e80940fc7c301d5c6c8ff708 Mon Sep 17 00:00:00 2001 From: Oded Viner Date: Wed, 9 Oct 2024 11:18:55 +0300 Subject: [PATCH 2/2] add bz decocorator Signed-off-by: Oded Viner --- tests/cross_functional/ui/test_odf_topology.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/cross_functional/ui/test_odf_topology.py b/tests/cross_functional/ui/test_odf_topology.py index 21fbd801b66..a66c45efdf9 100644 --- a/tests/cross_functional/ui/test_odf_topology.py +++ b/tests/cross_functional/ui/test_odf_topology.py @@ -81,6 +81,7 @@ class TestODFTopology(object): @tier3 @bugzilla("2209251") @bugzilla("2233027") + @bugzilla("2245068") @polarion_id("OCS-4901") def test_validate_topology_configuration( self, setup_ui_class, teardown_depl_busybox, pvc_factory, teardown_factory @@ -113,6 +114,10 @@ def test_validate_topology_configuration( OCS-4906 Add deployment to ODF cluster and verify that Topology represents added deployment OCS-4907 Delete deployment from ODF cluster and verify that Topology represents that deployment """ + logger.info( + "Add an unlabeled pod to the openshift-storage ns and " + "Check the ODF topology UI and verify that it functions as expected." + ) pvc_obj = pvc_factory( interface=constants.CEPHBLOCKPOOL, access_mode=constants.ACCESS_MODE_RWO,