Skip to content

Commit b9fae99

Browse files
authored
This PR is to add comments to TestTransformMasterProperties in pkg\ddc\alluxio\transform_test.go. (#4542)
* Add comments to TestTransformMasterProperties in pkg\ddc\alluxio\transform_test.go. Signed-off-by: cocodechen <2570667128@qq.com> * Add comments to TestTransformMasterProperties in pkg\ddc\alluxio\transform_test.go. Signed-off-by: cocodechen <2570667128@qq.com> --------- Signed-off-by: cocodechen <2570667128@qq.com>
1 parent 19a5367 commit b9fae99

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

pkg/ddc/alluxio/transform_test.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -872,6 +872,19 @@ func TestAlluxioEngine_allocatePorts(t *testing.T) {
872872
}
873873
}
874874

875+
// TestTransformMasterProperties tests the transformMasters function of AlluxioEngine.
876+
// It verifies whether the master properties are correctly transformed based on the given runtime configuration.
877+
// The test cases ensure that the properties from the master template take precedence over the global properties.
878+
//
879+
// Test Cases:
880+
// 1. "master properties is not null":
881+
// - Ensures that when master-specific properties exist, they override the global properties.
882+
//
883+
// 2. "properties is not null for master":
884+
// - Ensures that both master-specific and additional global properties are correctly handled.
885+
//
886+
// The function iterates over multiple test cases and checks if the transformed properties
887+
// match the expected values. If the transformation does not produce the expected result, the test fails.
875888
func TestTransformMasterProperties(t *testing.T) {
876889
engine := &AlluxioEngine{Log: fake.NullLogger()}
877890

0 commit comments

Comments
 (0)