|
|
|
@ -20,6 +20,7 @@ import (
|
|
|
|
|
"fmt"
|
|
|
|
|
"net/http"
|
|
|
|
|
"net/http/httptest"
|
|
|
|
|
"path/filepath"
|
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
|
|
"helm.sh/helm/v3/pkg/repo/repotest"
|
|
|
|
@ -48,6 +49,8 @@ func TestInstall(t *testing.T) {
|
|
|
|
|
t.Fatal(err)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
repoFile := filepath.Join(srv.Root(), "repositories.yaml")
|
|
|
|
|
|
|
|
|
|
tests := []cmdTestCase{
|
|
|
|
|
// Install, base case
|
|
|
|
|
{
|
|
|
|
@ -244,6 +247,11 @@ func TestInstall(t *testing.T) {
|
|
|
|
|
cmd: "install aeneas reqtest --namespace default --repo " + srv2.URL + " --username username --password password --pass-credentials",
|
|
|
|
|
golden: "output/install.txt",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "basic install with credentials and no repo",
|
|
|
|
|
cmd: fmt.Sprintf("install aeneas test/reqtest --username username --password password --repository-config %s --repository-cache %s", repoFile, srv.Root()),
|
|
|
|
|
golden: "output/install.txt",
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
runTestActionCmd(t, tests)
|
|
|
|
|