Skip to content

Commit c4bcc1e

Browse files
authored
Add Notation to TestJuiceFSEngine_deleteFusePersistentVolume in pkg\ddc\juicefs\delete_volume_test.go (#4604)
Signed-off-by: zhux2 <3022692203@qq.com>
1 parent 849cd93 commit c4bcc1e

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

pkg/ddc/juicefs/delete_volume_test.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff 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.
175184
func TestJuiceFSEngine_deleteFusePersistentVolume(t *testing.T) {
176185
testPVInputs := []*v1.PersistentVolume{
177186
{

0 commit comments

Comments
 (0)