Skip to content

Commit

Permalink
added cleanup() as subfunction to check_default_persistentvolumeclaim…
Browse files Browse the repository at this point in the history
…_readwriteonce()

Signed-off-by: Katharina Trentau <[email protected]>
  • Loading branch information
Katharina Trentau committed Sep 9, 2024
1 parent e7e9a11 commit be2c002
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def check_default_persistentvolumeclaim_readwriteonce(k8s_api_instance, storage_
3. Check if PV got succesfully created using ReadWriteOnce
4. Delete resources used for testing
"""

# 0. Define CleanUp
def cleanup():
logger.debug(f"delete pod:{pod_name}")
Expand All @@ -88,7 +89,6 @@ def cleanup():
pvc_name, namespace
)


namespace = "default"
pvc_name = "test-pvc"
pv_name = "test-pv"
Expand Down

0 comments on commit be2c002

Please sign in to comment.