Use a plain string for helm.Config.Command [#9]

I'm leaving the no-op test file in place because my next step is to add
new behavior that will require testing.
This commit is contained in:
Erin Call
2019-12-23 14:06:05 -08:00
parent ae9cb59a1f
commit ef4db923cd
2 changed files with 24 additions and 61 deletions

View File

@@ -12,17 +12,3 @@ type ConfigTestSuite struct {
func TestConfigTestSuite(t *testing.T) {
suite.Run(t, new(ConfigTestSuite))
}
func (suite *ConfigTestSuite) TestHelmCommandDecodeSuccess() {
cmd := helmCommand("")
err := cmd.Decode("upgrade")
suite.Require().Nil(err)
suite.EqualValues(cmd, "upgrade")
}
func (suite *ConfigTestSuite) TestHelmCommandDecodeFailure() {
cmd := helmCommand("")
err := cmd.Decode("execute order 66")
suite.EqualError(err, "unknown command 'execute order 66'. If specified, command must be upgrade, delete, lint, or help")
}