argo-cd/util/helm/cmd_test.go
Alexander Matyushentsev 6edd18bb89
feat: support helm3 (#2383) (#3178)
* feat: support helm3 (#2383)

* draft

* Apply reviewer notes
2020-03-04 17:05:44 +01:00

23 lines
554 B
Go

package helm
import (
"testing"
"github.com/stretchr/testify/assert"
)
func Test_cmd_redactor(t *testing.T) {
assert.Equal(t, "--foo bar", redactor("--foo bar"))
assert.Equal(t, "--username ******", redactor("--username bar"))
assert.Equal(t, "--password ******", redactor("--password bar"))
}
func TestCmd_template_kubeVersion(t *testing.T) {
cmd, err := NewCmdWithVersion(".", HelmV3)
assert.NoError(t, err)
s, err := cmd.template("testdata/redis", &TemplateOpts{
KubeVersion: "1.14",
})
assert.NoError(t, err)
assert.NotEmpty(t, s)
}