mirror of
https://github.com/helm/helm.git
synced 2026-08-09 01:21:20 +00:00
Merge pull request #8544 from technosophos/fix/repo-add-test-use-cache
fix test that modifies the wrong cache data
This commit is contained in:
@@ -40,11 +40,12 @@ func TestRepoAddCmd(t *testing.T) {
|
||||
}
|
||||
defer srv.Stop()
|
||||
|
||||
repoFile := filepath.Join(ensure.TempDir(t), "repositories.yaml")
|
||||
tmpdir := ensure.TempDir(t)
|
||||
repoFile := filepath.Join(tmpdir, "repositories.yaml")
|
||||
|
||||
tests := []cmdTestCase{{
|
||||
name: "add a repository",
|
||||
cmd: fmt.Sprintf("repo add test-name %s --repository-config %s", srv.URL(), repoFile),
|
||||
cmd: fmt.Sprintf("repo add test-name %s --repository-config %s --repository-cache %s", srv.URL(), repoFile, tmpdir),
|
||||
golden: "output/repo-add.txt",
|
||||
}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user