Update test framework to install webhook

Signed-off-by: James Munnelly <james.munnelly@jetstack.io>
This commit is contained in:
James Munnelly 2018-08-17 21:57:12 +01:00
parent e77eacdcec
commit 76ed08d69b
2 changed files with 14 additions and 1 deletions

View File

@ -81,12 +81,19 @@ func RunE2ETests(t *testing.T) {
const releaseName = "cm"
func InstallHelmChart(t *testing.T, releaseName, chartName, namespace, values string, extraArgs ...string) {
err := exec.Command("helm", "dep", "update", chartName).Run()
if err != nil {
t.Errorf("Error updating dependencies for %q: %s", releaseName, err)
t.FailNow()
return
}
args := []string{"install", chartName, "--namespace", namespace, "--name", releaseName, "--values", values, "--wait"}
args = append(args, extraArgs...)
cmd := exec.Command("helm", args...)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
err := cmd.Run()
err = cmd.Run()
if err != nil {
t.Errorf("Error installing %q: %s", releaseName, err)
t.FailNow()

View File

@ -6,3 +6,9 @@ image:
extraArgs:
- --v=4
webhook:
enabled: true
image:
tag: build
pullPolicy: Never