diff --git a/ocs_ci/framework/pytest_customization/marks.py b/ocs_ci/framework/pytest_customization/marks.py index c2690b82781f..8675f6543205 100644 --- a/ocs_ci/framework/pytest_customization/marks.py +++ b/ocs_ci/framework/pytest_customization/marks.py @@ -259,6 +259,11 @@ reason="Test runs ONLY on OSD or ROSA cluster", ) +provider_client_platform_required = pytest.mark.skipif( + (config.ENV_DATA["platform"].lower() not in HCI_PROVIDER_CLIENT_PLATFORMS), + reason="Test runs ONLY on cluster with HCI provider-client platform", +) + provider_client_ms_platform_required = pytest.mark.skipif( (config.ENV_DATA["platform"].lower() not in HCI_PC_OR_MS_PLATFORM), reason="Test runs ONLY on cluster with managed service or HCI provider-client platform", diff --git a/tests/functional/z_cluster/nodes/test_nodes_restart_hci.py b/tests/functional/z_cluster/nodes/test_nodes_restart_hci.py index 60dda1ae4a57..6953d06367ab 100644 --- a/tests/functional/z_cluster/nodes/test_nodes_restart_hci.py +++ b/tests/functional/z_cluster/nodes/test_nodes_restart_hci.py @@ -10,7 +10,7 @@ ignore_leftovers, ManageTest, bugzilla, - hci_provider_and_client_required, + provider_client_platform_required, ) from ocs_ci.ocs import constants from ocs_ci.ocs.constants import HCI_PROVIDER @@ -40,7 +40,7 @@ @brown_squad @ignore_leftovers -@hci_provider_and_client_required +@provider_client_platform_required class TestNodesRestartHCI(ManageTest): """ Test nodes restart scenarios when using HCI platform