From be2c002ad52bc985ad3e779505f57835a3fcfd06 Mon Sep 17 00:00:00 2001 From: Katharina Trentau Date: Mon, 9 Sep 2024 13:24:06 +0200 Subject: [PATCH] added cleanup() as subfunction to check_default_persistentvolumeclaim_readwriteonce() Signed-off-by: Katharina Trentau --- .../k8s-default-storage-class-check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/kaas/k8s-default-storage-class/k8s-default-storage-class-check.py b/Tests/kaas/k8s-default-storage-class/k8s-default-storage-class-check.py index 0921c2e2a..56a2caf48 100644 --- a/Tests/kaas/k8s-default-storage-class/k8s-default-storage-class-check.py +++ b/Tests/kaas/k8s-default-storage-class/k8s-default-storage-class-check.py @@ -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}") @@ -88,7 +89,6 @@ def cleanup(): pvc_name, namespace ) - namespace = "default" pvc_name = "test-pvc" pv_name = "test-pv"