mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-22 15:41:47 +00:00
23 lines
503 B
Go
23 lines
503 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.txt",
|
|
}
|
|
cmd.runTestCmd(t)
|
|
}
|