diff --git a/fluid b/fluid new file mode 160000 index 00000000000..4ff3cb9890a --- /dev/null +++ b/fluid @@ -0,0 +1 @@ +Subproject commit 4ff3cb9890a4fb5548636fa4a679ebbb219d9c86 diff --git a/pkg/ddc/alluxio/load_data_test.go b/pkg/ddc/alluxio/load_data_test.go index d95ab8b558b..c1dd6ce454f 100644 --- a/pkg/ddc/alluxio/load_data_test.go +++ b/pkg/ddc/alluxio/load_data_test.go @@ -38,6 +38,18 @@ import ( "k8s.io/apimachinery/pkg/runtime" ) +// TestGenerateDataLoadValueFile is a unit test function that tests the generateDataLoadValueFile method of the AlluxioEngine struct. +// It verifies the correct generation of DataLoad value file paths under different scenarios, including cases with and without target paths. +// The test sets up mock datasets and DataLoad specifications to validate that the engine produces the expected temporary file paths +// for value configuration files. It ensures the file naming convention follows the pattern "fluid--loader-values.yaml". +// +// Parameters: +// - t: A testing.T object used for managing test state and reporting test failures. It provides methods like Errorf +// to indicate test failures and log additional information about mismatched file paths. +// +// Returns: +// - None (This is a test function, so it does not return any value. Its purpose is to validate the file path generation +// logic and report any discrepancies through test failures.) func TestGenerateDataLoadValueFile(t *testing.T) { datasetInputs := []datav1alpha1.Dataset{ {