File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -274,6 +274,15 @@ func TestTransformResourcesForWorkerWithTieredStore(t *testing.T) {
274274 }
275275}
276276
277+ // TestTransformResourcesForWorkerWithValue tests the transformResourcesForWorker function.
278+ // It checks if the worker's memory resources (limits and requests) are correctly
279+ // transformed based on the AlluxioRuntime specification, particularly considering
280+ // the memory quota defined in the tiered storage configuration.
281+ // The test includes scenarios where:
282+ // 1. The specified memory limit is less than the memory tier quota, resulting in an error
283+ // and the original resource values being retained.
284+ // 2. The specified memory limit is sufficient, and the memory request is adjusted
285+ // to match the memory tier quota.
277286func TestTransformResourcesForWorkerWithValue (t * testing.T ) {
278287
279288 resources := corev1.ResourceRequirements {}
You can’t perform that action at this time.
0 commit comments