@@ -218,8 +218,8 @@ func TestTransformResourcesForWorkerWithTieredStore(t *testing.T) {
218218
219219 // Test cases structured to validate different tiered storage configurations
220220 var tests = []struct {
221- runtime * datav1alpha1.AlluxioRuntime // Input Alluxio runtime configuration
222- alluxioValue * Alluxio // Expected output configuration
221+ runtime * datav1alpha1.AlluxioRuntime // Input Alluxio runtime configuration
222+ alluxioValue * Alluxio // Expected output configuration
223223 }{
224224 {& datav1alpha1.AlluxioRuntime {
225225 ObjectMeta : metav1.ObjectMeta {
@@ -229,20 +229,20 @@ func TestTransformResourcesForWorkerWithTieredStore(t *testing.T) {
229229 Spec : datav1alpha1.AlluxioRuntimeSpec {
230230 TieredStore : datav1alpha1.TieredStore {
231231 Levels : []datav1alpha1.Level {{
232- MediumType : common .Memory , // Memory-based tiered storage configuration
232+ MediumType : common .Memory , // Memory-based tiered storage configuration
233233 Quota : & result , // 20Gi quota allocation
234234 }},
235235 },
236236 },
237237 }, & Alluxio {
238- Properties : map [string ]string {}, // Expected empty properties map
238+ Properties : map [string ]string {}, // Expected empty properties map
239239 }},
240240 }
241241 // Iterate through test cases to validate transformation logic
242242 for _ , test := range tests {
243243 // Initialize test environment with mocked dependencies
244244 engine := & AlluxioEngine {
245- Log : fake .NullLogger (), // Discard logging output
245+ Log : fake .NullLogger (), // Discard logging output
246246 name : "test" ,
247247 namespace : "test" ,
248248 }
@@ -472,12 +472,12 @@ func TestTransformResourcesForWorkerWithOnlyRequest(t *testing.T) {
472472// resource requests are handled as expected.
473473//
474474// The function performs the following steps:
475- // 1. Defines resource requirements with limits for memory (20Gi) and CPU (500m).
476- // 2. Sets up test cases to validate the transformation logic, including scenarios with and without
477- // tiered store configurations.
478- // 3. Initializes an AlluxioEngine instance with a fake client and runtime objects for testing.
479- // 4. Transforms the resource requirements for the worker using the AlluxioEngine.
480- // 5. Validates the transformed resource limits and requests against the expected results.
475+ // 1. Defines resource requirements with limits for memory (20Gi) and CPU (500m).
476+ // 2. Sets up test cases to validate the transformation logic, including scenarios with and without
477+ // tiered store configurations.
478+ // 3. Initializes an AlluxioEngine instance with a fake client and runtime objects for testing.
479+ // 4. Transforms the resource requirements for the worker using the AlluxioEngine.
480+ // 5. Validates the transformed resource limits and requests against the expected results.
481481//
482482// Test cases include:
483483// - A scenario where tiered store configuration is provided, ensuring memory limits and requests are set correctly.
0 commit comments