Change namespaces to be consistent in flux create secret tests

Signed-off-by: Alex Petrov <alex.petrov.vt@gmail.com>
pull/1699/head
Alex Petrov 4 years ago
parent 4978191767
commit fcc0fba6a9
No known key found for this signature in database
GPG Key ID: 2202312B7E9A7B11

@ -15,7 +15,7 @@ func TestCreateGitSecretNoArgs(t *testing.T) {
func TestCreateGitBasicSecret(t *testing.T) { func TestCreateGitBasicSecret(t *testing.T) {
cmd := cmdTestCase{ cmd := cmdTestCase{
args: "create secret git podinfo-auth --url=https://github.com/stefanprodan/podinfo --username=my-username --password=my-password --export", args: "create secret git podinfo-auth --url=https://github.com/stefanprodan/podinfo --username=my-username --password=my-password --namespace=my-namespace --export",
wantError: false, wantError: false,
goldenFile: "testdata/create/secret/git/secret-git-basic.yaml", goldenFile: "testdata/create/secret/git/secret-git-basic.yaml",
} }
@ -24,7 +24,7 @@ func TestCreateGitBasicSecret(t *testing.T) {
func TestCreateGitSSHPasswordSecret(t *testing.T) { func TestCreateGitSSHPasswordSecret(t *testing.T) {
cmd := cmdTestCase{ cmd := cmdTestCase{
args: "create secret git podinfo-auth --url=ssh://git@github.com/stefanprodan/podinfo --private-key-file=./testdata/create/secret/git/rsa-password.private --password=password --export", args: "create secret git podinfo-auth --url=ssh://git@github.com/stefanprodan/podinfo --private-key-file=./testdata/create/secret/git/rsa-password.private --password=password --namespace=my-namespace --export",
wantError: false, wantError: false,
goldenFile: "testdata/create/secret/git/git-ssh-secret-password.yaml", goldenFile: "testdata/create/secret/git/git-ssh-secret-password.yaml",
} }

@ -15,7 +15,7 @@ func TestCreateHelmSecretNoArgs(t *testing.T) {
func TestCreateHelmSecret(t *testing.T) { func TestCreateHelmSecret(t *testing.T) {
cmd := cmdTestCase{ cmd := cmdTestCase{
args: "create secret helm helm-secret --username=my-username --password=my-password --export", args: "create secret helm helm-secret --username=my-username --password=my-password --namespace=my-namespace --export",
wantError: false, wantError: false,
goldenFile: "testdata/create/secret/helm/secret-helm.yaml", goldenFile: "testdata/create/secret/helm/secret-helm.yaml",
} }

@ -3,7 +3,7 @@ apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
name: podinfo-auth name: podinfo-auth
namespace: flux-system namespace: my-namespace
stringData: stringData:
identity: | identity: |
-----BEGIN OPENSSH PRIVATE KEY----- -----BEGIN OPENSSH PRIVATE KEY-----

@ -3,7 +3,7 @@ apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
name: podinfo-auth name: podinfo-auth
namespace: flux-system namespace: my-namespace
stringData: stringData:
password: my-password password: my-password
username: my-username username: my-username

@ -3,7 +3,7 @@ apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
name: helm-secret name: helm-secret
namespace: flux-system namespace: my-namespace
stringData: stringData:
password: my-password password: my-password
username: my-username username: my-username

Loading…
Cancel
Save