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
71fa7ecb
Commit
71fa7ecb
authored
Jul 10, 2016
by
Adam Reese
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ref(cmd): remove duplicate test cases
parent
578ba71b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
47 deletions
+0
-47
list_test.go
cmd/helm/list_test.go
+0
-47
No files found.
cmd/helm/list_test.go
View file @
71fa7ecb
...
@@ -24,53 +24,6 @@ import (
...
@@ -24,53 +24,6 @@ import (
"k8s.io/helm/pkg/proto/hapi/release"
"k8s.io/helm/pkg/proto/hapi/release"
)
)
func
TestListRun
(
t
*
testing
.
T
)
{
tests
:=
[]
struct
{
name
string
listCmd
*
listCmd
expected
string
err
bool
}{
{
name
:
"with a release"
,
listCmd
:
&
listCmd
{
client
:
&
fakeReleaseClient
{
rels
:
[]
*
release
.
Release
{
releaseMock
(
"thomas-guide"
),
},
},
},
expected
:
"thomas-guide"
,
},
{
name
:
"list --long"
,
listCmd
:
&
listCmd
{
client
:
&
fakeReleaseClient
{
rels
:
[]
*
release
.
Release
{
releaseMock
(
"atlas"
),
},
},
long
:
true
,
},
expected
:
"NAME
\t
VERSION
\t
UPDATED
\t
STATUS
\t
CHART
\n
atlas
\t
1
\t
(.*)
\t
DEPLOYED
\t
foo-0.1.0-beta.1
\n
"
,
},
}
var
buf
bytes
.
Buffer
for
_
,
tt
:=
range
tests
{
tt
.
listCmd
.
out
=
&
buf
err
:=
tt
.
listCmd
.
run
()
if
(
err
!=
nil
)
!=
tt
.
err
{
t
.
Errorf
(
"%q. expected error: %v, got %v"
,
tt
.
name
,
tt
.
err
,
err
)
}
re
:=
regexp
.
MustCompile
(
tt
.
expected
)
if
!
re
.
Match
(
buf
.
Bytes
())
{
t
.
Errorf
(
"%q. expected %q, got %q"
,
tt
.
name
,
tt
.
expected
,
buf
.
String
())
}
buf
.
Reset
()
}
}
func
TestListCmd
(
t
*
testing
.
T
)
{
func
TestListCmd
(
t
*
testing
.
T
)
{
tests
:=
[]
struct
{
tests
:=
[]
struct
{
name
string
name
string
...
...
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