Skip to content

Commit

Permalink
GSS-BZ-2245068: Add an unlabeled pod to the openshift-storage ns (red…
Browse files Browse the repository at this point in the history
…-hat-storage#10636)

Signed-off-by: Oded Viner <[email protected]>
  • Loading branch information
OdedViner authored Oct 14, 2024
1 parent 7e4904d commit b824d9c
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions tests/cross_functional/ui/test_odf_topology.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)

Expand Down Expand Up @@ -79,11 +81,10 @@ 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,
self, setup_ui_class, teardown_depl_busybox, pvc_factory, teardown_factory
):
"""
Test to validate configuration of ODF Topology for internal and external deployments,
Expand Down Expand Up @@ -113,7 +114,25 @@ 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,
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()
Expand Down

0 comments on commit b824d9c

Please sign in to comment.