|
|
@ -169,6 +169,10 @@ func TestKindSorter(t *testing.T) {
|
|
|
|
Name: "x",
|
|
|
|
Name: "x",
|
|
|
|
Head: &SimpleHead{Kind: "HorizontalPodAutoscaler"},
|
|
|
|
Head: &SimpleHead{Kind: "HorizontalPodAutoscaler"},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Name: "F",
|
|
|
|
|
|
|
|
Head: &SimpleHead{Kind: "PriorityClass"},
|
|
|
|
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
for _, test := range []struct {
|
|
|
|
for _, test := range []struct {
|
|
|
@ -176,8 +180,8 @@ func TestKindSorter(t *testing.T) {
|
|
|
|
order KindSortOrder
|
|
|
|
order KindSortOrder
|
|
|
|
expected string
|
|
|
|
expected string
|
|
|
|
}{
|
|
|
|
}{
|
|
|
|
{"install", InstallOrder, "aAbcC3deEf1gh2iIjJkKlLmnopqrxstuUvw!"},
|
|
|
|
{"install", InstallOrder, "FaAbcC3deEf1gh2iIjJkKlLmnopqrxstuUvw!"},
|
|
|
|
{"uninstall", UninstallOrder, "wvUmutsxrqponLlKkJjIi2hg1fEed3CcbAa!"},
|
|
|
|
{"uninstall", UninstallOrder, "wvUmutsxrqponLlKkJjIi2hg1fEed3CcbAaF!"},
|
|
|
|
} {
|
|
|
|
} {
|
|
|
|
var buf bytes.Buffer
|
|
|
|
var buf bytes.Buffer
|
|
|
|
t.Run(test.description, func(t *testing.T) {
|
|
|
|
t.Run(test.description, func(t *testing.T) {
|
|
|
|