Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions pkg/ddc/alluxio/delete_volume_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,19 @@ func TestAlluxioEngine_DeleteVolume(t *testing.T) {
doTestCases(testCases, t)
}

// TestAlluxioEngine_DeleteFusePersistentVolume tests the functionality of deleting Fuse PersistentVolume in the AlluxioEngine.
// This function is mainly responsible for:
// - Setting up test cases with different configurations of PersistentVolume.
// - Creating a fake client to simulate interactions with the Kubernetes API for testing.
// - Initializing different AlluxioEngine instances with and without runtime settings.
// - Executing test cases and verifying whether the deletion operations of PersistentVolume succeed as expected.

// Parameters:
// - t (*testing.T): The testing framework's testing object, used to report test results and handle test failures.

// Returns:
// - None. The function reports test failures directly through the *testing.T object passed in.

func TestAlluxioEngine_DeleteFusePersistentVolume(t *testing.T) {
testPVInputs := []*v1.PersistentVolume{
{
Expand Down
Loading