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

// TestTransformResourcesForFuseWithValue tests the resource transformation logic for Alluxio Fuse components
// when explicit resource values are provided. The test verifies that the transformation correctly calculates
// and sets the memory limits for Fuse pods by combining:
// 1. Explicitly configured Fuse resource limits
// 2. Tiered store memory quotas
// Test scenario:
// - Creates mock AlluxioRuntime specification with:
// * Fuse memory limit: 2Gi
// * Tiered store memory quota: 20Gi
// - Verifies transformed Fuse memory limit equals expected sum (22Gi)
// This test ensures the resource aggregation logic handles:
// - Proper arithmetic addition of resource quantities
// - Correct handling of different resource units (Gi)
// - Integration of tiered store configuration with Fuse component settings
func TestTransformResourcesForFuseWithValue(t *testing.T) {

resources := corev1.ResourceRequirements{}
Expand Down
Loading