compose/ecs/tests/command_test.go
Guillaume Lours e9fe3b2864
Add e2e test deploying a compose application to an ECS cluster
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-08-17 21:25:55 +02:00

19 lines
377 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'",
})
}