Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions pkg/ddc/alluxio/load_data_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,11 @@ func TestGenerateDataLoadValueFile(t *testing.T) {
//
// Parameters:
// - t: A testing.T object used for managing test state and reporting test failures. It provides methods like Errorf and Fail
// to indicate test failures and log additional information.
// to indicate test failures and log additional information.
//
// Returns:
// - None (This is a test function, so it does not return any value. Its purpose is to validate the behavior of the code
// under test and report any issues via the testing.T object.)
// under test and report any issues via the testing.T object.)
func Test_genDataLoadValue(t *testing.T) {
testCases := map[string]struct {
image string
Expand Down
8 changes: 4 additions & 4 deletions pkg/ddc/alluxio/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -816,12 +816,12 @@ func TestGetFuseDaemonsetName(t *testing.T) {
// namespace, and engine name parameters to validate the resulting filesystem path.
//
// Parameters:
// - t : *testing.T
// Testing framework handle for managing test state and reporting failures
// - t : *testing.T
// Testing framework handle for managing test state and reporting failures
//
// Returns:
// - None
// Failures are reported through t.Errorf
// - None
// Failures are reported through t.Errorf
func TestGetMountPoint(t *testing.T) {
type fields struct {
name string
Expand Down
28 changes: 14 additions & 14 deletions pkg/ddc/juicefs/data_migrate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,26 +317,26 @@ func TestJuiceFSEngine_genDataUrl_PVC(t *testing.T) {
}
}

//TestJuiceFSEngine_genDataUrl Test JuiceFSEngine's genDataUrl function
//This function is used to generate URLs for data migration and supports the following two data sources:
// TestJuiceFSEngine_genDataUrl Test JuiceFSEngine's genDataUrl function
// This function is used to generate URLs for data migration and supports the following two data sources:
// 1. ExternalStorage: Generate URLs with authentication information via URIs and encryption options.
// 2. DataSet: Generate a URL in JuiceFS format from the dataset information and mount points.
//
//Parameter:
// Parameter:
// - t *testing. T: The context object of the test framework to report test results and errors.
//
//Test Cases:
//- test-external: Tests externally stored URL generation to verify that the encryption option is correctly replaced.
//- test-external-subpath: Tests the URL generation of the external storage subpath.
//- test-external-subpath-file: tests the URL generation of the external storage subpath file.
//- test-dataset: Test the URL generation of the dataset store to verify that the subpath is handled correctly.
//- test-dataset-no-path: The URL generated by the test dataset store (no subpath).
//- test-dataset-subpath-file: The URL of the test dataset storage subpath file is generated.
//- test-dataset-subpath-file2: The URL of the test dataset storage subpath file (with mount point) is generated.
//- test-dataset-subpath-file3: The URL of the test dataset storage subpath file (with mount points, no subpaths).
// Test Cases:
// - test-external: Tests externally stored URL generation to verify that the encryption option is correctly replaced.
// - test-external-subpath: Tests the URL generation of the external storage subpath.
// - test-external-subpath-file: tests the URL generation of the external storage subpath file.
// - test-dataset: Test the URL generation of the dataset store to verify that the subpath is handled correctly.
// - test-dataset-no-path: The URL generated by the test dataset store (no subpath).
// - test-dataset-subpath-file: The URL of the test dataset storage subpath file is generated.
// - test-dataset-subpath-file2: The URL of the test dataset storage subpath file (with mount point) is generated.
// - test-dataset-subpath-file3: The URL of the test dataset storage subpath file (with mount points, no subpaths).
//
//Return value:
//- No return value, test failure is reported via t.Errorf.
// Return value:
// - No return value, test failure is reported via t.Errorf.
func TestJuiceFSEngine_genDataUrl(t *testing.T) {
juicefsSecret := &corev1.Secret{
ObjectMeta: metav1.ObjectMeta{
Expand Down
Loading