Skip to content

Add comments to TestTransformResourcesForFuseWithValue in pkg/ddc/alluxio/transform_resources_test.go. #5000

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
southofborder opened this issue May 31, 2025 · 0 comments

Comments

@southofborder
Copy link

Which function do you want to add comments to?
TestTransformResourcesForFuseWithValue in pkg/ddc/alluxio/transform_resources_test.go
What comments do you want to add?

// 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant