Skip to content

Commit

Permalink
Skip unsupported Feature Encryption, new SC and NFS TC for HCI PC Pla…
Browse files Browse the repository at this point in the history
…tform (#8975)

Signed-off-by: suchita-g <[email protected]>
  • Loading branch information
suchita-g authored Dec 4, 2023
1 parent 3acdf38 commit 3875d3a
Show file tree
Hide file tree
Showing 13 changed files with 56 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
skipif_ocp_version,
E2ETest,
flowtests,
skipif_hci_provider_and_client,
)
from ocs_ci.ocs.constants import CEPHBLOCKPOOL
from ocs_ci.ocs.benchmark_operator import BMO_NAME
Expand Down Expand Up @@ -51,6 +52,7 @@ def test_pvc_snapshot_and_clone(

@skipif_ocs_version("<4.9")
@skipif_ocp_version("<4.9")
@skipif_hci_provider_and_client
@pytest.mark.parametrize(
argnames=["kv_version"],
argvalues=[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
E2ETest,
flowtests,
ignore_leftovers,
skipif_hci_provider_and_client,
)
from ocs_ci.ocs.constants import CEPHBLOCKPOOL
from ocs_ci.ocs.benchmark_operator import BMO_NAME
Expand Down Expand Up @@ -119,6 +120,7 @@ def test_pvc_snapshot_and_clone(

@skipif_ocs_version("<4.9")
@skipif_ocp_version("<4.9")
@skipif_hci_provider_and_client
@pytest.mark.parametrize(
argnames=["kv_version"],
argvalues=[
Expand Down
2 changes: 2 additions & 0 deletions tests/e2e/lifecycle/pvc_clone/test_pgsql_pvc_clone.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
skipif_ocp_version,
E2ETest,
tier2,
skipif_hci_provider_and_client,
)
from ocs_ci.ocs.benchmark_operator import BMO_NAME
from ocs_ci.ocs.constants import STATUS_COMPLETED, VOLUME_MODE_FILESYSTEM, CEPHBLOCKPOOL
Expand Down Expand Up @@ -152,6 +153,7 @@ def test_pvc_clone(self, pgsql_factory_fixture, pvc_clone_factory, pgsql_teardow

@skipif_ocs_version("<4.8")
@skipif_ocp_version("<4.8")
@skipif_hci_provider_and_client
@pytest.mark.parametrize(
argnames=["kv_version"],
argvalues=[
Expand Down
2 changes: 2 additions & 0 deletions tests/e2e/lifecycle/pvc_snapshot/test_pgsql_pvc_snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
skipif_ocp_version,
E2ETest,
tier2,
skipif_hci_provider_and_client,
)
from ocs_ci.ocs.benchmark_operator import BMO_NAME
from ocs_ci.ocs.constants import CEPHBLOCKPOOL
Expand Down Expand Up @@ -123,6 +124,7 @@ def test_pvc_snapshot(
)
@skipif_ocs_version("<4.8")
@skipif_ocp_version("<4.8")
@skipif_hci_provider_and_client
def test_encrypted_pvc_snapshot(
self,
kv_version,
Expand Down
2 changes: 2 additions & 0 deletions tests/encryption/test_intransit_encryption_sanity.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
tier1,
skipif_ocs_version,
green_squad,
skipif_hci_provider_and_client,
)
from ocs_ci.framework import config

Expand All @@ -20,6 +21,7 @@
reason="Skip due to issue https://github.com/red-hat-storage/ocs-ci/issues/8759"
)
@green_squad
@skipif_hci_provider_and_client
class TestInTransitEncryptionSanity:
@pytest.fixture(autouse=True)
def set_encryption_at_teardown(self, request):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
tier4c,
skipif_ocp_version,
skipif_managed_service,
skipif_hci_provider_and_client,
skipif_disconnected_cluster,
skipif_proxy_cluster,
polarion_id,
Expand All @@ -40,6 +41,7 @@
@skipif_ocs_version("<4.11")
@skipif_ocp_version("<4.11")
@skipif_managed_service
@skipif_hci_provider_and_client
@skipif_disconnected_cluster
@skipif_proxy_cluster
@polarion_id("OCS-4270")
Expand Down Expand Up @@ -73,6 +75,7 @@ def test_nfs_not_enabled_by_default(self):
@skipif_ocs_version("<4.11")
@skipif_ocp_version("<4.11")
@skipif_managed_service
@skipif_hci_provider_and_client
@skipif_disconnected_cluster
@skipif_proxy_cluster
class TestNfsEnable(ManageTest):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
polarion_id,
skipif_external_mode,
bugzilla,
skipif_hci_provider_and_client,
)
from ocs_ci.ocs.cluster import CephCluster
from ocs_ci.ocs.exceptions import (
Expand Down Expand Up @@ -55,6 +56,7 @@ def setup(self, project_factory, storageclass_factory, create_pvcs_and_pods):
)

@polarion_id("OCS-2759")
@skipif_hci_provider_and_client
@tier1
def test_rbd_space_reclaim_cronjob(self, pause_and_resume_cluster_load):
"""
Expand Down Expand Up @@ -148,6 +150,7 @@ def test_rbd_space_reclaim_cronjob(self, pause_and_resume_cluster_load):

@tier1
@bugzilla("2046677")
@skipif_hci_provider_and_client
@skipif_external_mode
@pytest.mark.parametrize(
argnames=["replica", "compression", "volume_binding_mode", "pvc_status"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ def test_rbd_space_reclaim_no_space(self):
@polarion_id("OCS-3733")
@tier2
@skipif_external_mode
@skipif_hci_provider_and_client
def test_no_volume_mounted(self):
"""
Test reclaimspace job with no volume mounted
Expand Down
19 changes: 16 additions & 3 deletions tests/manage/pv_services/test_change_reclaim_policy_of_pv.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
from ocs_ci.ocs import constants
from ocs_ci.framework import config
from ocs_ci.framework.pytest_customization.marks import green_squad
from ocs_ci.framework.testlib import ManageTest, tier1, skipif_managed_service
from ocs_ci.framework.testlib import (
ManageTest,
tier1,
skipif_managed_service,
skipif_hci_provider_and_client,
)
from ocs_ci.ocs.constants import RECLAIM_POLICY_DELETE, RECLAIM_POLICY_RETAIN
from ocs_ci.utility.utils import TimeoutSampler
from ocs_ci.helpers.helpers import (
Expand All @@ -29,15 +34,23 @@
),
pytest.param(
*[constants.CEPHBLOCKPOOL, RECLAIM_POLICY_RETAIN],
marks=[pytest.mark.polarion_id("OCS-962"), skipif_managed_service],
marks=[
pytest.mark.polarion_id("OCS-962"),
skipif_managed_service,
skipif_hci_provider_and_client,
],
),
pytest.param(
*[constants.CEPHFILESYSTEM, RECLAIM_POLICY_DELETE],
marks=pytest.mark.polarion_id("OCS-963"),
),
pytest.param(
*[constants.CEPHFILESYSTEM, RECLAIM_POLICY_RETAIN],
marks=[pytest.mark.polarion_id("OCS-964"), skipif_managed_service],
marks=[
pytest.mark.polarion_id("OCS-964"),
skipif_managed_service,
skipif_hci_provider_and_client,
],
),
],
)
Expand Down
4 changes: 3 additions & 1 deletion tests/manage/pv_services/test_pvc_assign_pod_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,10 @@ def test_rwo_pvc_assign_pod_node(self, interface, pvc_factory, teardown_factory)
pod.get_fio_rw_iops(pod_obj)

ocs_version = version.get_semantic_ocs_version_from_config()
if (ocs_version >= version.VERSION_4_12) and (
if ocs_version >= version.VERSION_4_12 and (
config.ENV_DATA.get("platform") != constants.FUSIONAAS_PLATFORM
or config.ENV_DATA.get("platform")
not in constants.HCI_PROVIDER_CLIENT_PLATFORMS
):
self.verify_access_token_notin_odf_pod_logs()

Expand Down
7 changes: 6 additions & 1 deletion tests/manage/pv_services/test_raw_block_pv.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
ManageTest,
acceptance,
skipif_managed_service,
hci_provider_and_client_required,
)
from ocs_ci.ocs import constants, node
from ocs_ci.helpers import helpers
Expand All @@ -31,7 +32,11 @@
),
pytest.param(
constants.RECLAIM_POLICY_RETAIN,
marks=[pytest.mark.polarion_id("OCS-750"), skipif_managed_service],
marks=[
pytest.mark.polarion_id("OCS-750"),
skipif_managed_service,
hci_provider_and_client_required,
],
),
],
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@
from ocs_ci.ocs import constants
from ocs_ci.ocs.resources.pod import get_fio_rw_iops
from ocs_ci.framework.pytest_customization.marks import green_squad
from ocs_ci.framework.testlib import ManageTest, tier2, skipif_external_mode
from ocs_ci.framework.testlib import (
ManageTest,
tier2,
skipif_external_mode,
skipif_hci_provider_and_client,
)
from tests.fixtures import create_rbd_secret, create_project

log = logging.getLogger(__name__)
Expand All @@ -13,6 +18,7 @@
@green_squad
@skipif_external_mode
@tier2
@skipif_hci_provider_and_client
@pytest.mark.usefixtures(
create_project.__name__,
create_rbd_secret.__name__,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
from ocs_ci.ocs.exceptions import ResourceLeftoversException
from ocs_ci.framework import config
from ocs_ci.framework.pytest_customization.marks import green_squad
from ocs_ci.framework.testlib import ManageTest, tier2, skipif_external_mode
from ocs_ci.framework.testlib import (
ManageTest,
tier2,
skipif_external_mode,
skipif_hci_provider_and_client,
)
from tests.fixtures import (
create_ceph_block_pool,
create_rbd_secret,
Expand Down Expand Up @@ -55,6 +60,7 @@ def finalizer():
@green_squad
@skipif_external_mode
@tier2
@skipif_hci_provider_and_client
@pytest.mark.usefixtures(
create_project.__name__,
create_rbd_secret.__name__,
Expand Down

0 comments on commit 3875d3a

Please sign in to comment.