Quellcode durchsuchen

Most common scenario is to use `compose ls` without name option, and list all stacks

Signed-off-by: Guillaume Tardif <[email protected]>
Guillaume Tardif vor 5 Jahren
Ursprung
Commit
171ab1bd0c
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 1 1
      tests/aci-e2e/e2e-aci_test.go
  2. 1 1
      tests/ecs-e2e/e2e-ecs_test.go

+ 1 - 1
tests/aci-e2e/e2e-aci_test.go

@@ -467,7 +467,7 @@ func TestComposeUpUpdate(t *testing.T) {
 	})
 	})
 
 
 	t.Run("compose ls", func(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")
 		lines := strings.Split(strings.TrimSpace(res.Stdout()), "\n")
 
 
 		assert.Equal(t, 2, len(lines))
 		assert.Equal(t, 2, len(lines))

+ 1 - 1
tests/ecs-e2e/e2e-ecs_test.go

@@ -99,7 +99,7 @@ func TestCompose(t *testing.T) {
 	})
 	})
 
 
 	t.Run("compose ls", func(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")
 		lines := strings.Split(strings.TrimSpace(res.Stdout()), "\n")
 
 
 		assert.Equal(t, 2, len(lines))
 		assert.Equal(t, 2, len(lines))