compose/ecs/tests/command_test.go
Guillaume Lours 6febf68748
Add e2e tests for plugin behavior and commands
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-08-17 21:25:47 +02:00

18 lines
374 B
Go

package tests
import (
"testing"
"gotest.tools/v3/icmd"
)
func TestExitErrorCode(t *testing.T) {
cmd, cleanup := dockerCli.createTestCmd()
defer cleanup()
cmd.Command = dockerCli.Command("ecs", "unknown_command")
icmd.RunCmd(cmd).Assert(t, icmd.Expected{
ExitCode: 1,
Err: "\"unknown_command\" is not a docker ecs command\nSee 'docker ecs --help'",
})
}