MCPcopy
hub / github.com/docker/compose / TestStopWithDependenciesAttached

Function TestStopWithDependenciesAttached

pkg/e2e/compose_test.go:282–294  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

280}
281
282func 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
296func TestRemoveOrphaned(t *testing.T) {
297 const projectName = "compose-e2e-remove-orphaned"

Callers

nothing calls this directly

Calls 3

NewParallelCLIFunction · 0.85
WithEnvFunction · 0.85
RunDockerComposeCmdMethod · 0.80

Tested by

no test coverage detected