Skip to content

Commit dabe1ed

Browse files
authored
Add Notation to TestAlluxioEngine_DeleteFusePersistentVolume in pkg\ddc\alluxio\delete_volume_test.go (#4933)
Signed-off-by: LYANG27 <1375439476@qq.com>
1 parent 43fe3bc commit dabe1ed

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

pkg/ddc/alluxio/delete_volume_test.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,19 @@ func TestAlluxioEngine_DeleteVolume(t *testing.T) {
166166
doTestCases(testCases, t)
167167
}
168168

169+
// TestAlluxioEngine_DeleteFusePersistentVolume tests the functionality of deleting Fuse PersistentVolume in the AlluxioEngine.
170+
// This function is mainly responsible for:
171+
// - Setting up test cases with different configurations of PersistentVolume.
172+
// - Creating a fake client to simulate interactions with the Kubernetes API for testing.
173+
// - Initializing different AlluxioEngine instances with and without runtime settings.
174+
// - Executing test cases and verifying whether the deletion operations of PersistentVolume succeed as expected.
175+
176+
// Parameters:
177+
// - t (*testing.T): The testing framework's testing object, used to report test results and handle test failures.
178+
179+
// Returns:
180+
// - None. The function reports test failures directly through the *testing.T object passed in.
181+
169182
func TestAlluxioEngine_DeleteFusePersistentVolume(t *testing.T) {
170183
testPVInputs := []*v1.PersistentVolume{
171184
{

0 commit comments

Comments
 (0)