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
58a2d7b5
Commit
58a2d7b5
authored
Jul 10, 2017
by
Aaron Schlesinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding APIService to the kind sorter tests
parent
5ff75f84
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
kind_sorter_test.go
pkg/tiller/kind_sorter_test.go
+7
-2
No files found.
pkg/tiller/kind_sorter_test.go
View file @
58a2d7b5
...
@@ -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
,
"abcdefghijklmnopqrstuv
w
!"
},
{
"uninstall"
,
UninstallOrder
,
"vmutsrqponlkjihgfedcba!"
},
{
"uninstall"
,
UninstallOrder
,
"
w
vmutsrqponlkjihgfedcba!"
},
}
{
}
{
var
buf
bytes
.
Buffer
var
buf
bytes
.
Buffer
t
.
Run
(
test
.
description
,
func
(
t
*
testing
.
T
)
{
t
.
Run
(
test
.
description
,
func
(
t
*
testing
.
T
)
{
...
...
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