mirror of
https://github.com/docker/compose.git
synced 2025-10-26 01:33:48 +02:00
19 lines
365 B
Go
19 lines
365 B
Go
package tests
|
|
|
|
import (
|
|
"strings"
|
|
"testing"
|
|
|
|
"gotest.tools/v3/assert"
|
|
"gotest.tools/v3/icmd"
|
|
)
|
|
|
|
func TestVersionIsSet(t *testing.T) {
|
|
cmd, cleanup, _ := dockerCli.createTestCmd()
|
|
defer cleanup()
|
|
|
|
cmd.Command = dockerCli.Command("ecs", "version")
|
|
out := icmd.RunCmd(cmd).Assert(t, icmd.Success).Stdout()
|
|
assert.Check(t, !strings.Contains(out, "unknown"))
|
|
}
|