From fcc0fba6a918e22a607100eda4a34381f60fd112 Mon Sep 17 00:00:00 2001 From: Alex Petrov Date: Sun, 8 Aug 2021 13:05:25 -0400 Subject: [PATCH] Change namespaces to be consistent in flux create secret tests Signed-off-by: Alex Petrov --- cmd/flux/create_secret_git_test.go | 4 ++-- cmd/flux/create_secret_helm_test.go | 2 +- .../testdata/create/secret/git/git-ssh-secret-password.yaml | 2 +- cmd/flux/testdata/create/secret/git/secret-git-basic.yaml | 2 +- cmd/flux/testdata/create/secret/helm/secret-helm.yaml | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/flux/create_secret_git_test.go b/cmd/flux/create_secret_git_test.go index e8b81c4a..9a3a9b3a 100644 --- a/cmd/flux/create_secret_git_test.go +++ b/cmd/flux/create_secret_git_test.go @@ -15,7 +15,7 @@ func TestCreateGitSecretNoArgs(t *testing.T) { func TestCreateGitBasicSecret(t *testing.T) { 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, goldenFile: "testdata/create/secret/git/secret-git-basic.yaml", } @@ -24,7 +24,7 @@ func TestCreateGitBasicSecret(t *testing.T) { func TestCreateGitSSHPasswordSecret(t *testing.T) { 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, goldenFile: "testdata/create/secret/git/git-ssh-secret-password.yaml", } diff --git a/cmd/flux/create_secret_helm_test.go b/cmd/flux/create_secret_helm_test.go index 606cfbfc..713a4643 100644 --- a/cmd/flux/create_secret_helm_test.go +++ b/cmd/flux/create_secret_helm_test.go @@ -15,7 +15,7 @@ func TestCreateHelmSecretNoArgs(t *testing.T) { func TestCreateHelmSecret(t *testing.T) { 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, goldenFile: "testdata/create/secret/helm/secret-helm.yaml", } diff --git a/cmd/flux/testdata/create/secret/git/git-ssh-secret-password.yaml b/cmd/flux/testdata/create/secret/git/git-ssh-secret-password.yaml index a0abb173..2858a25a 100644 --- a/cmd/flux/testdata/create/secret/git/git-ssh-secret-password.yaml +++ b/cmd/flux/testdata/create/secret/git/git-ssh-secret-password.yaml @@ -3,7 +3,7 @@ apiVersion: v1 kind: Secret metadata: name: podinfo-auth - namespace: flux-system + namespace: my-namespace stringData: identity: | -----BEGIN OPENSSH PRIVATE KEY----- diff --git a/cmd/flux/testdata/create/secret/git/secret-git-basic.yaml b/cmd/flux/testdata/create/secret/git/secret-git-basic.yaml index be55d450..e7baf136 100644 --- a/cmd/flux/testdata/create/secret/git/secret-git-basic.yaml +++ b/cmd/flux/testdata/create/secret/git/secret-git-basic.yaml @@ -3,7 +3,7 @@ apiVersion: v1 kind: Secret metadata: name: podinfo-auth - namespace: flux-system + namespace: my-namespace stringData: password: my-password username: my-username diff --git a/cmd/flux/testdata/create/secret/helm/secret-helm.yaml b/cmd/flux/testdata/create/secret/helm/secret-helm.yaml index 75186599..8fa1940a 100644 --- a/cmd/flux/testdata/create/secret/helm/secret-helm.yaml +++ b/cmd/flux/testdata/create/secret/helm/secret-helm.yaml @@ -3,7 +3,7 @@ apiVersion: v1 kind: Secret metadata: name: helm-secret - namespace: flux-system + namespace: my-namespace stringData: password: my-password username: my-username