fluxcd-flux2/cmd/flux/create_secret_helm_test.go
Alex Petrov 4978191767
Fix file formats
Signed-off-by: Alex Petrov <alex.petrov.vt@gmail.com>
2021-08-08 13:37:17 -04:00

23 lines
504 B
Go

package main
import (
"testing"
)
func TestCreateHelmSecretNoArgs(t *testing.T) {
cmd := cmdTestCase{
args: "create secret helm",
wantError: true,
goldenValue: "secret name is required",
}
cmd.runTestCmd(t)
}
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.yaml",
}
cmd.runTestCmd(t)
}