@@ -369,29 +369,29 @@ func TestGetDataSetFileNum(t *testing.T) {
369369 }
370370}
371371
372- // TestGetRuntime tests the AlluxioEngine.getRuntime() method to verify it correctly retrieves
372+ // TestGetRuntime tests the AlluxioEngine.getRuntime() method to verify it correctly retrieves
373373// the AlluxioRuntime custom resource from the Kubernetes cluster.
374- //
374+ //
375375// Test Structure:
376376// - Defines a test table with multiple test cases (though currently only one example exists).
377377// - Each test case specifies:
378- // * Input fields: Simulated AlluxioEngine instance configuration.
379- // * Expected output: The AlluxioRuntime object that should be returned.
380- // * Error expectation: Whether an error is expected during retrieval.
381- //
378+ // - Input fields: Simulated AlluxioEngine instance configuration.
379+ // - Expected output: The AlluxioRuntime object that should be returned.
380+ // - Error expectation: Whether an error is expected during retrieval.
381+ //
382382// Key Testing Components:
383- // - Uses Kubernetes client-go testing utilities (fake client, scheme registration) to mock
384- // API server interactions, avoiding real cluster dependencies.
385- // - Validates both successful retrieval and error conditions.
386- // - Checks deep equality between retrieved and expected objects to ensure metadata accuracy.
383+ // - Uses Kubernetes client-go testing utilities (fake client, scheme registration) to mock
384+ // API server interactions, avoiding real cluster dependencies.
385+ // - Validates both successful retrieval and error conditions.
386+ // - Checks deep equality between retrieved and expected objects to ensure metadata accuracy.
387387//
388388// Test Workflow for Each Case:
389389// 1. Register required Kubernetes resource types (AlluxioRuntime, core v1) into the scheme.
390390// 2. Initialize a fake client preloaded with the expected AlluxioRuntime object.
391391// 3. Instantiate the AlluxioEngine with test-specific configurations and the fake client.
392392// 4. Execute getRuntime() and validate:
393- // - Error behavior matches expectations
394- // - Retrieved object matches the expected object structure exactly
393+ // - Error behavior matches expectations
394+ // - Retrieved object matches the expected object structure exactly
395395//
396396// Edge Cases Covered (via additional test cases in TODO):
397397// - Non-existent runtime
0 commit comments