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
541fe062
Commit
541fe062
authored
Mar 28, 2016
by
jackgr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up manager test utility
parent
103145cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
30 deletions
+16
-30
testutil.go
cmd/manager/testutil.go
+16
-30
No files found.
cmd/manager/testutil.go
View file @
541fe062
...
...
@@ -112,54 +112,40 @@ func (m *mockManager) GetRepoForChart(chartName string) (string, error) {
}
func
(
m
*
mockManager
)
GetMetadataForChart
(
chartName
string
)
(
*
chart
.
Chartfile
,
error
)
{
return
nil
,
nil
return
&
chart
.
Chartfile
{}
,
nil
}
func
(
m
*
mockManager
)
GetChart
(
chartName
string
)
(
*
chart
.
Chart
,
error
)
{
return
nil
,
nil
return
&
chart
.
Chart
{}
,
nil
}
func
(
m
*
mockManager
)
AddRepo
(
addition
repo
.
IRepo
)
error
{
return
nil
func
(
m
*
mockManager
)
ListRepoCharts
(
repoName
string
,
regex
*
regexp
.
Regexp
)
([]
string
,
error
)
{
return
[]
string
{},
nil
}
func
(
m
*
mockManager
)
ListRepos
()
(
map
[
string
]
string
,
error
)
{
return
map
[
string
]
string
{},
nil
func
(
m
*
mockManager
)
GetChartForRepo
(
repoName
,
chartName
string
)
(
*
chart
.
Chart
,
error
)
{
return
&
chart
.
Chart
{},
nil
}
func
(
m
*
mockManager
)
RemoveRepo
(
name
string
)
error
{
func
(
m
*
mockManager
)
CreateCredential
(
name
string
,
c
*
repo
.
Credential
)
error
{
return
nil
}
func
(
m
*
mockManager
)
GetRepo
(
URL
string
)
(
repo
.
IRepo
,
error
)
{
return
nil
,
nil
func
(
m
*
mockManager
)
GetCredential
(
name
string
)
(
*
repo
.
Credential
,
error
)
{
return
&
repo
.
Credential
{},
nil
}
func
(
m
*
mockManager
)
ListRepos
()
(
[]
*
repo
.
Repo
,
error
)
{
return
[]
*
repo
.
Repo
{},
nil
func
(
m
*
mockManager
)
ListRepos
()
(
map
[
string
]
string
,
error
)
{
return
map
[
string
]
string
{},
nil
}
func
(
m
*
mockManager
)
CreateRepo
(
pr
*
repo
.
Repo
)
error
{
return
nil
}
func
(
m
*
mockManager
)
GetRepo
(
name
string
)
(
*
repo
.
Repo
,
error
)
{
return
&
repo
.
Repo
{},
nil
}
func
(
m
*
mockManager
)
DeleteRepo
(
name
string
)
error
{
func
(
m
*
mockManager
)
AddRepo
(
addition
repo
.
IRepo
)
error
{
return
nil
}
func
(
m
*
mockManager
)
ListRepoCharts
(
repoName
string
,
regex
*
regexp
.
Regexp
)
([]
string
,
error
)
{
return
[]
string
{},
nil
}
func
(
m
*
mockManager
)
GetChartForRepo
(
repoName
,
chartName
string
)
(
*
chart
.
Chart
,
error
)
{
return
nil
,
nil
}
func
(
m
*
mockManager
)
CreateCredential
(
name
string
,
c
*
repo
.
Credential
)
error
{
func
(
m
*
mockManager
)
RemoveRepo
(
name
string
)
error
{
return
nil
}
func
(
m
*
mockManager
)
GetCredential
(
name
string
)
(
*
repo
.
Credential
,
error
)
{
return
&
repo
.
Credential
{},
nil
func
(
m
*
mockManager
)
GetRepo
(
name
string
)
(
repo
.
IRepo
,
error
)
{
return
&
repo
.
Repo
{},
nil
}
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