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
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 when no resource values are specified
// in the AlluxioRuntime Spec. It verifies that the function doesn't set any memory limit for Fuse resources when
// the input runtime doesn't contain resource specifications. The test case uses an empty AlluxioRuntimeSpec and
// an empty Alluxio configuration to ensure the transformation logic handles nil/non-existent resource values correctly.
// The validation checks that no memory resource limit exists in the resulting Fuse configuration, which should be
// the expected behavior when no resource constraints are defined in the runtime specification.
func TestTransformResourcesForFuseNoValue(t *testing.T) {
var tests = []struct {
runtime *datav1alpha1.AlluxioRuntime
Expand Down
Loading