Skip to content

Commit

Permalink
PR for Running from jenkins for provider-client
Browse files Browse the repository at this point in the history
Signed-off-by: suchita-g <[email protected]>
  • Loading branch information
suchita-g committed Nov 13, 2023
1 parent 4f17eef commit af939e9
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
DEPLOYMENT:
allow_lower_instance_requirements: false
local_storage: true
ENV_DATA:
platform: 'baremetal'
cluster_type: 'provider'
cluster_namespace: "openshift-storage-client"
deployment_type: 'upi'
worker_replicas: 3
mon_type: 'hostpath'
osd_type: 'nvme'
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
DEPLOYMENT:
allow_lower_instance_requirements: false
local_storage: true
ENV_DATA:
platform: 'baremetal'
cluster_type: 'provider'
cluster_namespace: "openshift-storage"
deployment_type: 'upi'
worker_replicas: 3
master_replicas: 3
mon_type: 'hostpath'
osd_type: 'nvme'
24 changes: 12 additions & 12 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
skipif_ocp_version,
skipif_ocs_version,
TimeoutSampler,
skipif_upgraded_from,
# skipif_upgraded_from,
update_container_with_mirrored_image,
skipif_ui_not_support,
run_cmd,
Expand Down Expand Up @@ -311,9 +311,9 @@ def pytest_collection_modifyitems(session, config, items):
for item in items[:]:
skipif_ocp_version_marker = item.get_closest_marker("skipif_ocp_version")
skipif_ocs_version_marker = item.get_closest_marker("skipif_ocs_version")
skipif_upgraded_from_marker = item.get_closest_marker(
"skipif_upgraded_from"
)
# skipif_upgraded_from_marker = item.get_closest_marker(
# "skipif_upgraded_from"
# )
skipif_no_kms_marker = item.get_closest_marker("skipif_no_kms")
skipif_ui_not_support_marker = item.get_closest_marker(
"skipif_ui_not_support"
Expand Down Expand Up @@ -344,14 +344,14 @@ def pytest_collection_modifyitems(session, config, items):
log.debug(f"Test: {item} will be skipped due to {skip_condition}")
items.remove(item)
continue
if skipif_upgraded_from_marker:
skip_args = skipif_upgraded_from_marker.args
if skipif_upgraded_from(skip_args[0]):
log.debug(
f"Test: {item} will be skipped because the OCS cluster is"
f" upgraded from one of these versions: {skip_args[0]}"
)
items.remove(item)
# if skipif_upgraded_from_marker:
# skip_args = skipif_upgraded_from_marker.args
# if skipif_upgraded_from(skip_args[0]):
# log.debug(
# f"Test: {item} will be skipped because the OCS cluster is"
# f" upgraded from one of these versions: {skip_args[0]}"
# )
# items.remove(item)
if skipif_no_kms_marker:
try:
if not is_kms_enabled(dont_raise=True):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
skipif_external_mode,
ipi_deployment_required,
ms_provider_and_consumer_required,
hci_provider_and_client_required,
skipif_ms_provider_and_consumer,
# skipif_hci_provider_and_client,
ms_consumer_required,
# hci_client_required,
skipif_bm,
magenta_squad,
)
Expand Down Expand Up @@ -67,6 +70,7 @@ def test_create_scale_pods_and_pvcs_using_kube_job(
log.info("The resources created successfully using the kube job")

@ms_provider_and_consumer_required
@hci_provider_and_client_required
def test_create_scale_pods_and_pvcs_using_kube_job_ms(
self, create_scale_pods_and_pvcs_using_kube_job
):
Expand Down Expand Up @@ -121,6 +125,7 @@ def test_create_scale_pods_and_pvcs_with_ms_consumer(
@tier1
@ignore_leftovers
@ms_provider_and_consumer_required
@hci_provider_and_client_required
class TestCreateScalePodsAndPvcsUsingKubeJobWithMSConsumers(ManageTest):
"""
Test create scale pods and PVCs using a kube job with MS consumers
Expand Down

0 comments on commit af939e9

Please sign in to comment.