Skip to content

Commit

Permalink
Update test_pvc_delete_subvolumegroup.py (#9273)
Browse files Browse the repository at this point in the history
- Enhance log messages
 - Implement test skip on registry removal failure

Signed-off-by: Sidhant Agrawal <[email protected]>
  • Loading branch information
sidhant-agrawal authored Feb 16, 2024
1 parent 3fb4c5d commit c5ead6a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/manage/pv_services/test_pvc_delete_subvolumegroup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,15 @@ def setup(self, request, project_factory):
"""
registry_exists = registry.check_if_registry_stack_exists()
if registry_exists:
logger.info("Removing OCP registry from ODF")
logger.info(
"Attempting to remove existing registry configuration with ODF backed PVCs"
)
remove_ocp_registry_from_ocs(config.ENV_DATA["platform"])
if registry.check_if_registry_stack_exists():
logger.warning("Registry removal failed")
pytest.skip(
"Test skipped due to registry configuration on the cluster with ODF backed PVCs"
)
registry_pvc = get_all_pvc_objs(
namespace=constants.OPENSHIFT_IMAGE_REGISTRY_NAMESPACE
)[0]
Expand Down

0 comments on commit c5ead6a

Please sign in to comment.