diff --git a/pkg/ddc/alluxio/hcfs_test.go b/pkg/ddc/alluxio/hcfs_test.go index 0510e6ef44a..b60783e801b 100644 --- a/pkg/ddc/alluxio/hcfs_test.go +++ b/pkg/ddc/alluxio/hcfs_test.go @@ -200,6 +200,9 @@ func TestQueryHCFSEndpoint(t *testing.T) { } } +// TestCompatibleUFSVersion tests the compatibility of the UFS (Under File System) version +// by mocking the execution of commands in a container. It verifies that the function +// queryCompatibleUFSVersion returns the expected output based on the mocked command execution results. func TestCompatibleUFSVersion(t *testing.T) { mockExecCommon := func(ctx context.Context, podName string, containerName string, namespace string, cmd []string) (stdout string, stderr string, e error) { return "conf", "", nil