ref(tests): simplify kind sorter test

parent 72bb046c
...@@ -27,117 +27,94 @@ func TestKindSorter(t *testing.T) { ...@@ -27,117 +27,94 @@ func TestKindSorter(t *testing.T) {
manifests := []manifest{ manifests := []manifest{
{ {
name: "i", name: "i",
content: "",
head: &util.SimpleHead{Kind: "ClusterRole"}, head: &util.SimpleHead{Kind: "ClusterRole"},
}, },
{ {
name: "j", name: "j",
content: "",
head: &util.SimpleHead{Kind: "ClusterRoleBinding"}, head: &util.SimpleHead{Kind: "ClusterRoleBinding"},
}, },
{ {
name: "e", name: "e",
content: "",
head: &util.SimpleHead{Kind: "ConfigMap"}, head: &util.SimpleHead{Kind: "ConfigMap"},
}, },
{ {
name: "u", name: "u",
content: "",
head: &util.SimpleHead{Kind: "CronJob"}, head: &util.SimpleHead{Kind: "CronJob"},
}, },
{ {
name: "n", name: "n",
content: "",
head: &util.SimpleHead{Kind: "DaemonSet"}, head: &util.SimpleHead{Kind: "DaemonSet"},
}, },
{ {
name: "r", name: "r",
content: "",
head: &util.SimpleHead{Kind: "Deployment"}, head: &util.SimpleHead{Kind: "Deployment"},
}, },
{ {
name: "!", name: "!",
content: "",
head: &util.SimpleHead{Kind: "HonkyTonkSet"}, head: &util.SimpleHead{Kind: "HonkyTonkSet"},
}, },
{ {
name: "v", name: "v",
content: "",
head: &util.SimpleHead{Kind: "Ingress"}, head: &util.SimpleHead{Kind: "Ingress"},
}, },
{ {
name: "t", name: "t",
content: "",
head: &util.SimpleHead{Kind: "Job"}, head: &util.SimpleHead{Kind: "Job"},
}, },
{ {
name: "c", name: "c",
content: "",
head: &util.SimpleHead{Kind: "LimitRange"}, head: &util.SimpleHead{Kind: "LimitRange"},
}, },
{ {
name: "a", name: "a",
content: "",
head: &util.SimpleHead{Kind: "Namespace"}, head: &util.SimpleHead{Kind: "Namespace"},
}, },
{ {
name: "f", name: "f",
content: "",
head: &util.SimpleHead{Kind: "PersistentVolume"}, head: &util.SimpleHead{Kind: "PersistentVolume"},
}, },
{ {
name: "g", name: "g",
content: "",
head: &util.SimpleHead{Kind: "PersistentVolumeClaim"}, head: &util.SimpleHead{Kind: "PersistentVolumeClaim"},
}, },
{ {
name: "o", name: "o",
content: "",
head: &util.SimpleHead{Kind: "Pod"}, head: &util.SimpleHead{Kind: "Pod"},
}, },
{ {
name: "q", name: "q",
content: "",
head: &util.SimpleHead{Kind: "ReplicaSet"}, head: &util.SimpleHead{Kind: "ReplicaSet"},
}, },
{ {
name: "p", name: "p",
content: "",
head: &util.SimpleHead{Kind: "ReplicationController"}, head: &util.SimpleHead{Kind: "ReplicationController"},
}, },
{ {
name: "b", name: "b",
content: "",
head: &util.SimpleHead{Kind: "ResourceQuota"}, head: &util.SimpleHead{Kind: "ResourceQuota"},
}, },
{ {
name: "k", name: "k",
content: "",
head: &util.SimpleHead{Kind: "Role"}, head: &util.SimpleHead{Kind: "Role"},
}, },
{ {
name: "l", name: "l",
content: "",
head: &util.SimpleHead{Kind: "RoleBinding"}, head: &util.SimpleHead{Kind: "RoleBinding"},
}, },
{ {
name: "d", name: "d",
content: "",
head: &util.SimpleHead{Kind: "Secret"}, head: &util.SimpleHead{Kind: "Secret"},
}, },
{ {
name: "m", name: "m",
content: "",
head: &util.SimpleHead{Kind: "Service"}, head: &util.SimpleHead{Kind: "Service"},
}, },
{ {
name: "h", name: "h",
content: "",
head: &util.SimpleHead{Kind: "ServiceAccount"}, head: &util.SimpleHead{Kind: "ServiceAccount"},
}, },
{ {
name: "s", name: "s",
content: "",
head: &util.SimpleHead{Kind: "StatefulSet"}, head: &util.SimpleHead{Kind: "StatefulSet"},
}, },
} }
......
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