Skip to content
Closed
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions pkg/ddc/alluxio/transform_resources_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,12 @@ func TestTransformResourcesForWorkerWithOnlyLimit(t *testing.T) {
}
}

// TestTransformResourcesForFuseNoValue tests the transformResourcesForFuse function in AlluxioEngine
// when no resource values are specified in the AlluxioRuntime Spec. It verifies that:
// 1. The function can handle empty AlluxioRuntime Spec without errors
// 2. No resource limits are set on the Fuse when no values are specified
// The test creates a mock AlluxioRuntime with empty Spec and checks the resulting Alluxio configuration
// doesn't contain any Fuse resource limits.
func TestTransformResourcesForFuseNoValue(t *testing.T) {
var tests = []struct {
runtime *datav1alpha1.AlluxioRuntime
Expand Down
Binary file not shown.