From b384493cafba7d36ae61e2142e70d51d38bbab9f Mon Sep 17 00:00:00 2001 From: Zrq436 <1448853658@qq.com> Date: Fri, 30 May 2025 13:13:22 +0800 Subject: [PATCH] Add notition to TestGenerateAlluxioValueFile in pkg/ddc/alluxio/master_internal_test.go. Signed-off-by: Zrq436 <1448853658@qq.com> --- pkg/ddc/alluxio/master_internal_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/ddc/alluxio/master_internal_test.go b/pkg/ddc/alluxio/master_internal_test.go index 17071815594..595d71fac5e 100644 --- a/pkg/ddc/alluxio/master_internal_test.go +++ b/pkg/ddc/alluxio/master_internal_test.go @@ -167,6 +167,13 @@ func TestSetupMasterInternal(t *testing.T) { wrappedUnhookCheckRelease() } +// TestGenerateAlluxioValueFile tests the functionality of generating Alluxio configuration files. +// It verifies successful generation under valid input conditions and ensures idempotency of subsequent calls. +// The test creates mock AlluxioRuntime/Dataset resources, initializes dependencies (port allocator), +// and validates error handling during configuration generation. +// +// Parameters: +// t : *testing.T - Testing context object for test control and reporting func TestGenerateAlluxioValueFile(t *testing.T) { allixioruntime := &datav1alpha1.AlluxioRuntime{ ObjectMeta: metav1.ObjectMeta{