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