Skip to content

Commit 59de4a5

Browse files
committed
Add Comments to TestTransformMasterMountConfigMap in pkg/ddc/alluxio/transform_test.go.
Signed-off-by: dx3906-123 <1357731187@qq.com>
1 parent dabe1ed commit 59de4a5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

pkg/ddc/alluxio/transform_test.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,6 +1279,19 @@ func TestGenerateNonNativeMountsInfo(t *testing.T) {
12791279
}
12801280
}
12811281

1282+
// TestTransformMasterMountConfigMap verifies the behavior of AlluxioEngine.transformMasters()
1283+
// in processing mount configurations (including encrypted secrets) and generating the expected
1284+
// Alluxio Master specifications.
1285+
//
1286+
// Key test cases:
1287+
// - Validates correct handling of non-native mounts (e.g., remote HBase storage with secret references).
1288+
// - Ensures generated volumes/volumeMounts align with Kubernetes Secret configurations.
1289+
// - Checks MountConfigStorage assignment (e.g., ConfigMap usage).
1290+
//
1291+
// Example:
1292+
// Input: Dataset with encrypted mount options → Output: Alluxio Master spec with secret volumes
1293+
// and properly formatted mount commands.
1294+
func TestTransformMasterMountConfigMap(t *testing.T) { ... }
12821295
func TestTransformMasterMountConfigMap(t *testing.T) {
12831296
const (
12841297
SecretName = "alluxio-secret"

0 commit comments

Comments
 (0)