You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TestTransformPodMetadata(t *testing.T) in pkg\ddc\alluxio\transform_test.go.
What comments do you want to add?
// TestTransformPodMetadata tests the transformation of Pod metadata (labels and annotations)
// for AlluxioRuntime components. It verifies that common metadata specified in the Runtime's
// PodMetadata is correctly applied to Master, Worker, and Fuse components, while ensuring
// component-specific metadata overrides the common settings when present.
//
// Test cases:
// 1. Set common labels and annotations:
// Verifies that labels/annotations from Runtime.Spec.PodMetadata are propagated to
// all components (Master, Worker, Fuse) when no component-specific metadata exists.
//
// 2. Set master and worker labels/annotations:
// Validates that component-specific metadata in Master/Worker PodMetadata takes precedence
// over common metadata, while Fuse uses common metadata when no Fuse-specific settings exist.
//
// The test checks if the transformed Alluxio configuration matches the expected output
// after applying the metadata transformation rules.
The text was updated successfully, but these errors were encountered:
Which function do you want to add comments to?
TestTransformPodMetadata(t *testing.T) in pkg\ddc\alluxio\transform_test.go.
What comments do you want to add?
// TestTransformPodMetadata tests the transformation of Pod metadata (labels and annotations)
// for AlluxioRuntime components. It verifies that common metadata specified in the Runtime's
// PodMetadata is correctly applied to Master, Worker, and Fuse components, while ensuring
// component-specific metadata overrides the common settings when present.
//
// Test cases:
// 1. Set common labels and annotations:
// Verifies that labels/annotations from Runtime.Spec.PodMetadata are propagated to
// all components (Master, Worker, Fuse) when no component-specific metadata exists.
//
// 2. Set master and worker labels/annotations:
// Validates that component-specific metadata in Master/Worker PodMetadata takes precedence
// over common metadata, while Fuse uses common metadata when no Fuse-specific settings exist.
//
// The test checks if the transformed Alluxio configuration matches the expected output
// after applying the metadata transformation rules.
The text was updated successfully, but these errors were encountered: