|
|
|
@ -25,6 +25,10 @@ import (
|
|
|
|
|
|
|
|
|
|
func TestKindSorter(t *testing.T) {
|
|
|
|
|
manifests := []Manifest{
|
|
|
|
|
{
|
|
|
|
|
Name: "E",
|
|
|
|
|
Head: &SimpleHead{Kind: "SecretList"},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
Name: "i",
|
|
|
|
|
Head: &SimpleHead{Kind: "ClusterRole"},
|
|
|
|
@ -168,8 +172,8 @@ func TestKindSorter(t *testing.T) {
|
|
|
|
|
order KindSortOrder
|
|
|
|
|
expected string
|
|
|
|
|
}{
|
|
|
|
|
{"install", InstallOrder, "aAbcC3def1gh2iIjJkKlLmnopqrxstuvw!"},
|
|
|
|
|
{"uninstall", UninstallOrder, "wvmutsxrqponLlKkJjIi2hg1fed3CcbAa!"},
|
|
|
|
|
{"install", InstallOrder, "aAbcC3deEf1gh2iIjJkKlLmnopqrxstuvw!"},
|
|
|
|
|
{"uninstall", UninstallOrder, "wvmutsxrqponLlKkJjIi2hg1fEed3CcbAa!"},
|
|
|
|
|
} {
|
|
|
|
|
var buf bytes.Buffer
|
|
|
|
|
t.Run(test.description, func(t *testing.T) {
|
|
|
|
|