Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GSS-BZ-2245068: Add an unlabeled pod to the openshift-storage ns #10636

Merged
merged 2 commits into from
Oct 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading