mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
feat(libhelm): allow passing optional env and http client [EE-5252] (#8758)
This commit is contained in:
parent
a7474188b9
commit
7a8a20e0cc
29 changed files with 161 additions and 52 deletions
|
@ -61,7 +61,7 @@ func Test_Install(t *testing.T) {
|
|||
}
|
||||
|
||||
release, err := hbpm.Install(installOpts)
|
||||
defer hbpm.run("uninstall", []string{"test-nginx"})
|
||||
defer hbpm.run("uninstall", []string{"test-nginx"}, nil)
|
||||
|
||||
is.NoError(err, "should successfully install release", release)
|
||||
})
|
||||
|
@ -73,7 +73,7 @@ func Test_Install(t *testing.T) {
|
|||
Repo: "https://charts.bitnami.com/bitnami",
|
||||
}
|
||||
release, err := hbpm.Install(installOpts)
|
||||
defer hbpm.run("uninstall", []string{release.Name})
|
||||
defer hbpm.run("uninstall", []string{release.Name}, nil)
|
||||
|
||||
is.NoError(err, "should successfully install release", release)
|
||||
})
|
||||
|
@ -92,7 +92,7 @@ func Test_Install(t *testing.T) {
|
|||
ValuesFile: values,
|
||||
}
|
||||
release, err := hbpm.Install(installOpts)
|
||||
defer hbpm.run("uninstall", []string{"test-nginx-2"})
|
||||
defer hbpm.run("uninstall", []string{"test-nginx-2"}, nil)
|
||||
|
||||
is.NoError(err, "should successfully install release", release)
|
||||
})
|
||||
|
@ -105,7 +105,7 @@ func Test_Install(t *testing.T) {
|
|||
Repo: "https://portainer.github.io/k8s/",
|
||||
}
|
||||
release, err := hbpm.Install(installOpts)
|
||||
defer hbpm.run("uninstall", []string{installOpts.Name})
|
||||
defer hbpm.run("uninstall", []string{installOpts.Name}, nil)
|
||||
|
||||
is.NoError(err, "should successfully install release", release)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue