Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Commit 900718f

Browse files
committed
test: k8s: delete pv and pvc at teardown.
Delete the persistent volume and persistent volume claim on teardown() to have the system clean after running the test. Signed-off-by: Salvador Fuentes <salvador.fuentes@intel.com>
1 parent ca73ac1 commit 900718f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

integration/kubernetes/k8s-volume.bats

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,7 @@ setup() {
5555

5656
teardown() {
5757
sudo -E kubectl delete pod "$pod_name"
58+
sudo -E kubectl delete pvc "$volume_claim"
59+
sudo -E kubectl delete pv "$volume_name"
5860
sudo rm -rf $tmp_file
5961
}

0 commit comments

Comments
 (0)