Skip to content
Closed
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
12 changes: 12 additions & 0 deletions pkg/ddc/alluxio/transform_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1279,6 +1279,18 @@ func TestGenerateNonNativeMountsInfo(t *testing.T) {
}
}

// TestTransformMasterMountConfigMap verifies the behavior of AlluxioEngine.transformMasters()
// in processing mount configurations (including encrypted secrets) and generating the expected
// Alluxio Master specifications.
//
// Key test cases:
// - Validates correct handling of non-native mounts (e.g., remote HBase storage with secret references).
// - Ensures generated volumes/volumeMounts align with Kubernetes Secret configurations.
// - Checks MountConfigStorage assignment (e.g., ConfigMap usage).
//
// Example:
// Input: Dataset with encrypted mount options → Output: Alluxio Master spec with secret volumes
// and properly formatted mount commands.
func TestTransformMasterMountConfigMap(t *testing.T) {
const (
SecretName = "alluxio-secret"
Expand Down
Loading