File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
175185func TestJindoEngine_DeleteFusePersistentVolume (t * testing.T ) {
176186 testPVInputs := []* v1.PersistentVolume {
177187 {
You can’t perform that action at this time.
0 commit comments