Skip to content

Commit 2e29093

Browse files
authored
Add Notation to TestJindoEngine_DeleteFusePersistentVolume in pkg\ddc\jindo\delete_volume_test.go. (#4626)
Signed-off-by: laiyindagm <a1269986600@163.com>
1 parent 1b61b57 commit 2e29093

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

pkg/ddc/jindo/delete_volume_test.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,16 @@ func TestJindoEngine_DeleteVolume(t *testing.T) {
172172
doTestCases(testCases, t)
173173
}
174174

175+
// TestJindoEngine_DeleteFusePersistentVolume tests the deletion of a Fuse Persistent Volume in the JindoEngine.
176+
// It creates a fake client with a predefined Persistent Volume and initializes two instances of JindoEngine,
177+
// one with runtime enabled and one without. It then runs test cases to verify the deletion behavior of the
178+
// Persistent Volume in both scenarios.
179+
//
180+
// Test cases:
181+
// - JindoEngine with runtime enabled: expects the Persistent Volume to be deleted without errors.
182+
// - JindoEngine without runtime enabled: expects the Persistent Volume to be deleted with an error.
183+
//
184+
// The function uses the doTestCases helper to execute the test cases and validate the results.
175185
func TestJindoEngine_DeleteFusePersistentVolume(t *testing.T) {
176186
testPVInputs := []*v1.PersistentVolume{
177187
{

0 commit comments

Comments
 (0)