mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-22 23:51:48 +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) {
|
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…
Reference in a new issue