Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions pkg/ddc/alluxio/transform_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -862,6 +862,19 @@ func TestAlluxioEngine_allocatePorts(t *testing.T) {
}
}

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

Expand Down