Commit 58a2d7b5 authored by Aaron Schlesinger's avatar Aaron Schlesinger

Adding APIService to the kind sorter tests

parent 5ff75f84
...@@ -140,6 +140,11 @@ func TestKindSorter(t *testing.T) { ...@@ -140,6 +140,11 @@ func TestKindSorter(t *testing.T) {
content: "", content: "",
head: &util.SimpleHead{Kind: "StatefulSet"}, head: &util.SimpleHead{Kind: "StatefulSet"},
}, },
{
name: "w",
content: "",
head: &util.SimpleHead{Kind: "APIService"},
},
} }
for _, test := range []struct { for _, test := range []struct {
...@@ -147,8 +152,8 @@ func TestKindSorter(t *testing.T) { ...@@ -147,8 +152,8 @@ func TestKindSorter(t *testing.T) {
order SortOrder order SortOrder
expected string expected string
}{ }{
{"install", InstallOrder, "abcdefghijklmnopqrstuv!"}, {"install", InstallOrder, "abcdefghijklmnopqrstuvw!"},
{"uninstall", UninstallOrder, "vmutsrqponlkjihgfedcba!"}, {"uninstall", UninstallOrder, "wvmutsrqponlkjihgfedcba!"},
} { } {
var buf bytes.Buffer var buf bytes.Buffer
t.Run(test.description, func(t *testing.T) { t.Run(test.description, func(t *testing.T) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment