File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -602,6 +602,12 @@ func TestTransformResourcesForWorkerWithOnlyLimit(t *testing.T) {
602602 }
603603}
604604
605+ // TestTransformResourcesForFuseNoValue tests the transformResourcesForFuse function when no resource values are specified
606+ // in the AlluxioRuntime Spec. It verifies that the function doesn't set any memory limit for Fuse resources when
607+ // the input runtime doesn't contain resource specifications. The test case uses an empty AlluxioRuntimeSpec and
608+ // an empty Alluxio configuration to ensure the transformation logic handles nil/non-existent resource values correctly.
609+ // The validation checks that no memory resource limit exists in the resulting Fuse configuration, which should be
610+ // the expected behavior when no resource constraints are defined in the runtime specification.
605611func TestTransformResourcesForFuseNoValue (t * testing.T ) {
606612 var tests = []struct {
607613 runtime * datav1alpha1.AlluxioRuntime
You can’t perform that action at this time.
0 commit comments