Clean up manager test utility

pull/461/head
jackgr 9 years ago
parent 103145cc9d
commit 541fe062c6

@ -112,54 +112,40 @@ func (m *mockManager) GetRepoForChart(chartName string) (string, error) {
} }
func (m *mockManager) GetMetadataForChart(chartName string) (*chart.Chartfile, 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) { func (m *mockManager) GetChart(chartName string) (*chart.Chart, error) {
return nil, nil return &chart.Chart{}, nil
} }
func (m *mockManager) AddRepo(addition repo.IRepo) error { func (m *mockManager) ListRepoCharts(repoName string, regex *regexp.Regexp) ([]string, error) {
return nil return []string{}, nil
} }
func (m *mockManager) ListRepos() (map[string]string, error) { func (m *mockManager) GetChartForRepo(repoName, chartName string) (*chart.Chart, error) {
return map[string]string{}, nil return &chart.Chart{}, nil
} }
func (m *mockManager) RemoveRepo(name string) error { func (m *mockManager) CreateCredential(name string, c *repo.Credential) error {
return nil return nil
} }
func (m *mockManager) GetCredential(name string) (*repo.Credential, error) {
func (m *mockManager) GetRepo(URL string) (repo.IRepo, error) { return &repo.Credential{}, nil
return nil, nil
} }
func (m *mockManager) ListRepos() ([]*repo.Repo, error) { func (m *mockManager) ListRepos() (map[string]string, error) {
return []*repo.Repo{}, nil return map[string]string{}, nil
} }
func (m *mockManager) CreateRepo(pr *repo.Repo) error { func (m *mockManager) AddRepo(addition repo.IRepo) error {
return nil
}
func (m *mockManager) GetRepo(name string) (*repo.Repo, error) {
return &repo.Repo{}, nil
}
func (m *mockManager) DeleteRepo(name string) error {
return nil return nil
} }
func (m *mockManager) ListRepoCharts(repoName string, regex *regexp.Regexp) ([]string, error) { func (m *mockManager) RemoveRepo(name 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 {
return nil 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
} }

Loading…
Cancel
Save