|
|
|
@ -85,6 +85,10 @@ func TestKindSorter(t *testing.T) {
|
|
|
|
|
Name: "o",
|
|
|
|
|
Head: &util.SimpleHead{Kind: "Pod"},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
Name: "3",
|
|
|
|
|
Head: &util.SimpleHead{Kind: "PodSecurityPolicy"},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
Name: "q",
|
|
|
|
|
Head: &util.SimpleHead{Kind: "ReplicaSet"},
|
|
|
|
@ -136,8 +140,8 @@ func TestKindSorter(t *testing.T) {
|
|
|
|
|
order SortOrder
|
|
|
|
|
expected string
|
|
|
|
|
}{
|
|
|
|
|
{"install", InstallOrder, "abcde1fgh2ijklmnopqrstuvw!"},
|
|
|
|
|
{"uninstall", UninstallOrder, "wvmutsrqponlkji2hgf1edcba!"},
|
|
|
|
|
{"install", InstallOrder, "abc3de1fgh2ijklmnopqrstuvw!"},
|
|
|
|
|
{"uninstall", UninstallOrder, "wvmutsrqponlkji2hgf1ed3cba!"},
|
|
|
|
|
} {
|
|
|
|
|
var buf bytes.Buffer
|
|
|
|
|
t.Run(test.description, func(t *testing.T) {
|
|
|
|
|