mirror of
https://github.com/helm/helm.git
synced 2026-04-22 23:00:01 -04:00
Adding test for user/pass without repo on Helm install
Signed-off-by: Matt Farina <matt.farina@suse.com>
This commit is contained in:
parent
4e2e4084ed
commit
385fcae1ba
1 changed files with 8 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue