Skip to content

Commit

Permalink
Added skip marker to test if azure KV config is not set. (#10076)
Browse files Browse the repository at this point in the history
Signed-off-by: Parag Kamble <[email protected]>
  • Loading branch information
paraggit authored Jul 11, 2024
1 parent 818c196 commit 78e027a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions ocs_ci/framework/pytest_customization/marks.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
MS_CONSUMER_TYPE,
HCI_PROVIDER,
BAREMETAL_PLATFORMS,
AZURE_KV_PROVIDER_NAME,
)
from ocs_ci.utility import version
from ocs_ci.utility.aws import update_config_from_s3
Expand Down Expand Up @@ -370,6 +371,11 @@
reason="KMS config not found in auth.yaml",
)

azure_kv_config_required = pytest.mark.skipif(
config.ENV_DATA["KMS_PROVIDER"].lower() != AZURE_KV_PROVIDER_NAME,
reason="Azure KV config required to run the test.",
)

external_mode_required = pytest.mark.skipif(
config.DEPLOYMENT.get("external_mode") is not True,
reason="Test will run on External Mode cluster only",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
tier1,
green_squad,
azure_platform_required,
kms_config_required,
azure_kv_config_required,
polarion_id,
skipif_ocs_version,
skipif_managed_service,
Expand All @@ -24,7 +24,7 @@
@tier1
@green_squad
@azure_platform_required
@kms_config_required
@azure_kv_config_required
@skipif_ocs_version("<4.16")
@skipif_managed_service
@skipif_hci_provider_and_client
Expand Down

0 comments on commit 78e027a

Please sign in to comment.