mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-22 15:41:47 +00:00
Change namespaces to be consistent in flux create secret tests
Signed-off-by: Alex Petrov <alex.petrov.vt@gmail.com>
This commit is contained in:
parent
4978191767
commit
fcc0fba6a9
5 changed files with 6 additions and 6 deletions
|
|
@ -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",
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ apiVersion: v1
|
|||
kind: Secret
|
||||
metadata:
|
||||
name: podinfo-auth
|
||||
namespace: flux-system
|
||||
namespace: my-namespace
|
||||
stringData:
|
||||
identity: |
|
||||
-----BEGIN OPENSSH PRIVATE KEY-----
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue