Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pkg/ddc/jindo/delete_volume_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ func TestJindoEngine_DeleteFusePersistentVolume(t *testing.T) {
doTestCases(testCases, t)
}

// TestJindoEngine_DeleteFusePersistentVolumeClaim tests the DeleteFusePersistentVolumeClaim method of JindoEngine.
// This test verifies the behavior when deleting a PersistentVolumeClaim (PVC) under two scenarios:
// 1. With a functional JindoEngine instance, expecting successful deletion of the PVC.
// 2. With a JindoEngine instance that lacks a runtime, expecting an error upon attempting to delete the PVC.
// The test initializes a fake Kubernetes client and the corresponding PVC inputs to execute these scenarios.
func TestJindoEngine_DeleteFusePersistentVolumeClaim(t *testing.T) {
testPVCInputs := []*v1.PersistentVolumeClaim{
{
Expand Down
Loading