Skip to content

Commit f7551b3

Browse files
authored
Add notation to TestTransformResourcesForFuseNoValue in pkg\ddc\alluxio\transform_resources_test.go. (#4931)
Signed-off-by: ruinedlake <2922308415@qq.com>
1 parent dabe1ed commit f7551b3

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

pkg/ddc/alluxio/transform_resources_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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.
605611
func TestTransformResourcesForFuseNoValue(t *testing.T) {
606612
var tests = []struct {
607613
runtime *datav1alpha1.AlluxioRuntime

0 commit comments

Comments
 (0)