From 574ea9d2f9b1d21df01ee981c65c024d37311107 Mon Sep 17 00:00:00 2001 From: laiyindagm Date: Tue, 11 Mar 2025 19:56:52 +0800 Subject: [PATCH] Add Notation to TestJindoEngine_DeleteFusePersistentVolume in pkg\ddc\jindo\delete_volume_test.go. Signed-off-by: laiyindagm --- pkg/ddc/jindo/delete_volume_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkg/ddc/jindo/delete_volume_test.go b/pkg/ddc/jindo/delete_volume_test.go index 6204b76bf15..f1cf80f835c 100644 --- a/pkg/ddc/jindo/delete_volume_test.go +++ b/pkg/ddc/jindo/delete_volume_test.go @@ -145,6 +145,16 @@ func TestJindoEngine_DeleteVolume(t *testing.T) { doTestCases(testCases, t) } +// TestJindoEngine_DeleteFusePersistentVolume tests the deletion of a Fuse Persistent Volume in the JindoEngine. +// It creates a fake client with a predefined Persistent Volume and initializes two instances of JindoEngine, +// one with runtime enabled and one without. It then runs test cases to verify the deletion behavior of the +// Persistent Volume in both scenarios. +// +// Test cases: +// - JindoEngine with runtime enabled: expects the Persistent Volume to be deleted without errors. +// - JindoEngine without runtime enabled: expects the Persistent Volume to be deleted with an error. +// +// The function uses the doTestCases helper to execute the test cases and validate the results. func TestJindoEngine_DeleteFusePersistentVolume(t *testing.T) { testPVInputs := []*v1.PersistentVolume{ {