diff --git a/cmd/flux/create_secret_git_test.go b/cmd/flux/create_secret_git_test.go index c4dad14e..e8b81c4a 100644 --- a/cmd/flux/create_secret_git_test.go +++ b/cmd/flux/create_secret_git_test.go @@ -17,7 +17,7 @@ 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", wantError: false, - goldenFile: "testdata/create/secret/git/secret-git-basic.txt", + goldenFile: "testdata/create/secret/git/secret-git-basic.yaml", } cmd.runTestCmd(t) } @@ -26,7 +26,7 @@ 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", wantError: false, - goldenFile: "testdata/create/secret/git/git-ssh-secret-password.txt", + goldenFile: "testdata/create/secret/git/git-ssh-secret-password.yaml", } cmd.runTestCmd(t) } diff --git a/cmd/flux/create_secret_helm_test.go b/cmd/flux/create_secret_helm_test.go index e41fb3d8..606cfbfc 100644 --- a/cmd/flux/create_secret_helm_test.go +++ b/cmd/flux/create_secret_helm_test.go @@ -17,7 +17,7 @@ func TestCreateHelmSecret(t *testing.T) { cmd := cmdTestCase{ args: "create secret helm helm-secret --username=my-username --password=my-password --export", wantError: false, - goldenFile: "testdata/create/secret/helm/secret-helm.txt", + goldenFile: "testdata/create/secret/helm/secret-helm.yaml", } cmd.runTestCmd(t) } diff --git a/cmd/flux/create_secret_tls_test.go b/cmd/flux/create_secret_tls_test.go index 2a27864b..4582d8b8 100644 --- a/cmd/flux/create_secret_tls_test.go +++ b/cmd/flux/create_secret_tls_test.go @@ -17,7 +17,7 @@ func TestCreateTlsSecret(t *testing.T) { cmd := cmdTestCase{ args: "create secret tls certs --namespace=my-namespace --cert-file=./testdata/create/secret/tls/test-cert.pem --key-file=./testdata/create/secret/tls/test-key.pem --export", wantError: false, - goldenFile: "testdata/create/secret/tls/secret-tls.txt", + goldenFile: "testdata/create/secret/tls/secret-tls.yaml", } cmd.runTestCmd(t) } diff --git a/cmd/flux/testdata/create/secret/git/git-ssh-secret-password.txt b/cmd/flux/testdata/create/secret/git/git-ssh-secret-password.yaml similarity index 100% rename from cmd/flux/testdata/create/secret/git/git-ssh-secret-password.txt rename to cmd/flux/testdata/create/secret/git/git-ssh-secret-password.yaml diff --git a/cmd/flux/testdata/create/secret/git/secret-git-basic.txt b/cmd/flux/testdata/create/secret/git/secret-git-basic.yaml similarity index 100% rename from cmd/flux/testdata/create/secret/git/secret-git-basic.txt rename to cmd/flux/testdata/create/secret/git/secret-git-basic.yaml diff --git a/cmd/flux/testdata/create/secret/helm/secret-helm.txt b/cmd/flux/testdata/create/secret/helm/secret-helm.yaml similarity index 100% rename from cmd/flux/testdata/create/secret/helm/secret-helm.txt rename to cmd/flux/testdata/create/secret/helm/secret-helm.yaml diff --git a/cmd/flux/testdata/create/secret/tls/secret-tls.txt b/cmd/flux/testdata/create/secret/tls/secret-tls.yaml similarity index 100% rename from cmd/flux/testdata/create/secret/tls/secret-tls.txt rename to cmd/flux/testdata/create/secret/tls/secret-tls.yaml