Skip to content
Merged
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
11 changes: 11 additions & 0 deletions pkg/ddc/alluxio/deprecated_label_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,17 @@ func getTestAlluxioEngine(client client.Client, name string, namespace string) *
return engine
}

// TestAlluxioEngine_GetDeprecatedCommonLabelname tests the GetCommonLabelName function,
// to ensure that it generates the correct common label name under different test cases.
//
// Parameters for the GetCommonLabelName function:
// - useDeprecated (bool): Whether to use the deprecated label format.
// - namespace (string): The namespace to which the resource belongs.
// - name (string): The name of the resource.
// - suffix (string): The suffix of the label, which is not used in this test case.
//
// This test checks various combinations of `namespace` and `name`,
// and validates whether the generated label name matches the expected output, ensuring the function logic is correct.
func TestAlluxioEngine_GetDeprecatedCommonLabelname(t *testing.T) {
testCases := []struct {
name string
Expand Down
Loading