(t *testing.T)
| 280 | } |
| 281 | |
| 282 | func TestStopWithDependenciesAttached(t *testing.T) { |
| 283 | const projectName = "compose-e2e-stop-with-deps" |
| 284 | c := NewParallelCLI(t, WithEnv("COMMAND=echo hello")) |
| 285 | |
| 286 | cleanup := func() { |
| 287 | c.RunDockerComposeCmd(t, "-p", projectName, "down", "--remove-orphans", "--timeout=0") |
| 288 | } |
| 289 | cleanup() |
| 290 | t.Cleanup(cleanup) |
| 291 | |
| 292 | res := c.RunDockerComposeCmd(t, "-f", "./fixtures/dependencies/compose.yaml", "-p", projectName, "up", "--attach-dependencies", "foo", "--menu=false") |
| 293 | res.Assert(t, icmd.Expected{Out: "exited with code 0"}) |
| 294 | } |
| 295 | |
| 296 | func TestRemoveOrphaned(t *testing.T) { |
| 297 | const projectName = "compose-e2e-remove-orphaned" |
nothing calls this directly
no test coverage detected