Skip to content

Commit 4ff3cb9

Browse files
authored
Add notation to TestGenerateNonNativeMountsInfo in pkg/ddc/alluxio/transform_test.go (#4580)
Signed-off-by: zyrsin <18205047273@163.com>
1 parent 2602674 commit 4ff3cb9

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

pkg/ddc/alluxio/transform_test.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,6 +1131,23 @@ func TestTransformFuseProperties(t *testing.T) {
11311131
}
11321132
}
11331133

1134+
// TestGenerateNonNativeMountsInfo validates the generation of non-local storage mount configurations for Alluxio engine.
1135+
//
1136+
// Functionality:
1137+
// - Tests the logic that converts Dataset storage definitions into Alluxio mount commands
1138+
// - Filters out local storage types (e.g. pvc://)
1139+
// - Handles security credential injection from Kubernetes Secrets
1140+
// - Verifies command argument formatting for different storage protocols
1141+
//
1142+
// Parameters:
1143+
// - t *(testing.T) : Go test framework handler
1144+
//
1145+
// Returns:
1146+
// - No direct return value
1147+
// - Fails test through t.Fatalf if:
1148+
// 1. Unexpected error occurs during generation (err != nil)
1149+
// 2. Generated commands mismatch wantValue expectations
1150+
// 3. Protocol handling violates defined rules
11341151
func TestGenerateNonNativeMountsInfo(t *testing.T) {
11351152
const (
11361153
SecretName = "ds-secret"

0 commit comments

Comments
 (0)