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 (
...
@@ -26,119 +26,96 @@ import (
func
TestKindSorter
(
t
*
testing
.
T
)
{
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"
},
},
},
}
}
...
...
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