Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
0d1f6b98
Unverified
Commit
0d1f6b98
authored
Jul 10, 2017
by
Adam Reese
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ref(tests): simplify kind sorter test
parent
72bb046c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
69 deletions
+46
-69
kind_sorter_test.go
pkg/tiller/kind_sorter_test.go
+46
-69
No files found.
pkg/tiller/kind_sorter_test.go
View file @
0d1f6b98
...
...
@@ -26,119 +26,96 @@ import (
func
TestKindSorter
(
t
*
testing
.
T
)
{
manifests
:=
[]
manifest
{
{
name
:
"i"
,
content
:
""
,
head
:
&
util
.
SimpleHead
{
Kind
:
"ClusterRole"
},
name
:
"i"
,
head
:
&
util
.
SimpleHead
{
Kind
:
"ClusterRole"
},
},
{
name
:
"j"
,
content
:
""
,
head
:
&
util
.
SimpleHead
{
Kind
:
"ClusterRoleBinding"
},
name
:
"j"
,
head
:
&
util
.
SimpleHead
{
Kind
:
"ClusterRoleBinding"
},
},
{
name
:
"e"
,
content
:
""
,
head
:
&
util
.
SimpleHead
{
Kind
:
"ConfigMap"
},
name
:
"e"
,
head
:
&
util
.
SimpleHead
{
Kind
:
"ConfigMap"
},
},
{
name
:
"u"
,
content
:
""
,
head
:
&
util
.
SimpleHead
{
Kind
:
"CronJob"
},
name
:
"u"
,
head
:
&
util
.
SimpleHead
{
Kind
:
"CronJob"
},
},
{
name
:
"n"
,
content
:
""
,
head
:
&
util
.
SimpleHead
{
Kind
:
"DaemonSet"
},
name
:
"n"
,
head
:
&
util
.
SimpleHead
{
Kind
:
"DaemonSet"
},
},
{
name
:
"r"
,
content
:
""
,
head
:
&
util
.
SimpleHead
{
Kind
:
"Deployment"
},
name
:
"r"
,
head
:
&
util
.
SimpleHead
{
Kind
:
"Deployment"
},
},
{
name
:
"!"
,
content
:
""
,
head
:
&
util
.
SimpleHead
{
Kind
:
"HonkyTonkSet"
},
name
:
"!"
,
head
:
&
util
.
SimpleHead
{
Kind
:
"HonkyTonkSet"
},
},
{
name
:
"v"
,
content
:
""
,
head
:
&
util
.
SimpleHead
{
Kind
:
"Ingress"
},
name
:
"v"
,
head
:
&
util
.
SimpleHead
{
Kind
:
"Ingress"
},
},
{
name
:
"t"
,
content
:
""
,
head
:
&
util
.
SimpleHead
{
Kind
:
"Job"
},
name
:
"t"
,
head
:
&
util
.
SimpleHead
{
Kind
:
"Job"
},
},
{
name
:
"c"
,
content
:
""
,
head
:
&
util
.
SimpleHead
{
Kind
:
"LimitRange"
},
name
:
"c"
,
head
:
&
util
.
SimpleHead
{
Kind
:
"LimitRange"
},
},
{
name
:
"a"
,
content
:
""
,
head
:
&
util
.
SimpleHead
{
Kind
:
"Namespace"
},
name
:
"a"
,
head
:
&
util
.
SimpleHead
{
Kind
:
"Namespace"
},
},
{
name
:
"f"
,
content
:
""
,
head
:
&
util
.
SimpleHead
{
Kind
:
"PersistentVolume"
},
name
:
"f"
,
head
:
&
util
.
SimpleHead
{
Kind
:
"PersistentVolume"
},
},
{
name
:
"g"
,
content
:
""
,
head
:
&
util
.
SimpleHead
{
Kind
:
"PersistentVolumeClaim"
},
name
:
"g"
,
head
:
&
util
.
SimpleHead
{
Kind
:
"PersistentVolumeClaim"
},
},
{
name
:
"o"
,
content
:
""
,
head
:
&
util
.
SimpleHead
{
Kind
:
"Pod"
},
name
:
"o"
,
head
:
&
util
.
SimpleHead
{
Kind
:
"Pod"
},
},
{
name
:
"q"
,
content
:
""
,
head
:
&
util
.
SimpleHead
{
Kind
:
"ReplicaSet"
},
name
:
"q"
,
head
:
&
util
.
SimpleHead
{
Kind
:
"ReplicaSet"
},
},
{
name
:
"p"
,
content
:
""
,
head
:
&
util
.
SimpleHead
{
Kind
:
"ReplicationController"
},
name
:
"p"
,
head
:
&
util
.
SimpleHead
{
Kind
:
"ReplicationController"
},
},
{
name
:
"b"
,
content
:
""
,
head
:
&
util
.
SimpleHead
{
Kind
:
"ResourceQuota"
},
name
:
"b"
,
head
:
&
util
.
SimpleHead
{
Kind
:
"ResourceQuota"
},
},
{
name
:
"k"
,
content
:
""
,
head
:
&
util
.
SimpleHead
{
Kind
:
"Role"
},
name
:
"k"
,
head
:
&
util
.
SimpleHead
{
Kind
:
"Role"
},
},
{
name
:
"l"
,
content
:
""
,
head
:
&
util
.
SimpleHead
{
Kind
:
"RoleBinding"
},
name
:
"l"
,
head
:
&
util
.
SimpleHead
{
Kind
:
"RoleBinding"
},
},
{
name
:
"d"
,
content
:
""
,
head
:
&
util
.
SimpleHead
{
Kind
:
"Secret"
},
name
:
"d"
,
head
:
&
util
.
SimpleHead
{
Kind
:
"Secret"
},
},
{
name
:
"m"
,
content
:
""
,
head
:
&
util
.
SimpleHead
{
Kind
:
"Service"
},
name
:
"m"
,
head
:
&
util
.
SimpleHead
{
Kind
:
"Service"
},
},
{
name
:
"h"
,
content
:
""
,
head
:
&
util
.
SimpleHead
{
Kind
:
"ServiceAccount"
},
name
:
"h"
,
head
:
&
util
.
SimpleHead
{
Kind
:
"ServiceAccount"
},
},
{
name
:
"s"
,
content
:
""
,
head
:
&
util
.
SimpleHead
{
Kind
:
"StatefulSet"
},
name
:
"s"
,
head
:
&
util
.
SimpleHead
{
Kind
:
"StatefulSet"
},
},
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment