mirror of
https://github.com/docker/compose.git
synced 2025-04-08 17:05:13 +02:00
Most common scenario is to use compose ls
without name option, and list all stacks
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
This commit is contained in:
parent
a2e0f16f07
commit
171ab1bd0c
@ -467,7 +467,7 @@ func TestComposeUpUpdate(t *testing.T) {
|
||||
})
|
||||
|
||||
t.Run("compose ls", func(t *testing.T) {
|
||||
res := c.RunDockerCmd("compose", "ls", "--project-name", composeProjectName)
|
||||
res := c.RunDockerCmd("compose", "ls")
|
||||
lines := strings.Split(strings.TrimSpace(res.Stdout()), "\n")
|
||||
|
||||
assert.Equal(t, 2, len(lines))
|
||||
|
@ -99,7 +99,7 @@ func TestCompose(t *testing.T) {
|
||||
})
|
||||
|
||||
t.Run("compose ls", func(t *testing.T) {
|
||||
res := c.RunDockerCmd("compose", "ls", "--project-name", stack)
|
||||
res := c.RunDockerCmd("compose", "ls")
|
||||
lines := strings.Split(strings.TrimSpace(res.Stdout()), "\n")
|
||||
|
||||
assert.Equal(t, 2, len(lines))
|
||||
|
Loading…
x
Reference in New Issue
Block a user