Skip to content

Commit 199258c

Browse files
authored
This PR is to add comments to TestTransformMaster in pkg\ddc\alluxio\transform_test.go. (#4716)
* Add comments to TestTransformMaster in pkg\ddc\alluxio\transform_test.go. Signed-off-by: lz-xuniji <454570804@qq.com> * Add comments to TestTransformMaster in pkg\ddc\alluxio\transform_test.go. Signed-off-by: lz-xuniji <454570804@qq.com> --------- Signed-off-by: lz-xuniji <454570804@qq.com>
1 parent 8d26afa commit 199258c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/ddc/alluxio/transform_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@ func TestTransformFuse(t *testing.T) {
9494
}
9595
}
9696

97+
// TestTransformMaster function is designed to test the transformMasters method of the AlluxioEngine struct.
98+
// This method processes a given AlluxioRuntime object to set properties in the Alluxio struct, specifically focusing on the HostNetwork and ImagePullSecrets fields within the Master attribute.
99+
// The function outlines several test cases, each containing a uniquely configured AlluxioRuntime object and the expected Alluxio object outcome.
100+
// These test cases cover various network modes (such as ContainerNetworkMode and HostNetworkMode) and hierarchical imagePullSecrets configurations.
101+
// After executing each test case, the actual result is compared with the expected outcome, and if there's a mismatch, an error is logged using t.Errorf.
102+
// This process ensures the accuracy of the transformMasters method under different configurations.
97103
func TestTransformMaster(t *testing.T) {
98104
testCases := map[string]struct {
99105
runtime *datav1alpha1.AlluxioRuntime

0 commit comments

Comments
 (0)