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,15 @@ func TestJuiceFSEngine_DeleteVolume(t *testing.T) {
172172 doTestCases (testCases , t )
173173}
174174
175+ // TestJuiceFSEngine_deleteFusePersistentVolume tests the deletion of a FUSE PersistentVolume
176+ // in the JuiceFS engine. It creates test PersistentVolume objects and initializes
177+ // JuiceFS engine instances with and without runtime. The function verifies if the
178+ // PersistentVolume is correctly deleted and whether an error is expected based on
179+ // the engine configuration.
180+ //
181+ // Test Scenario:
182+ // - When the engine has a runtime, the PersistentVolume should be deleted without error.
183+ // - When the engine has no runtime, deletion should fail with an error.
175184func TestJuiceFSEngine_deleteFusePersistentVolume (t * testing.T ) {
176185 testPVInputs := []* v1.PersistentVolume {
177186 {
You can’t perform that action at this time.
0 commit comments