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

Function TestPostStartHookSuccess

pkg/e2e/hooks_test.go:51–61  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

49}
50
51func TestPostStartHookSuccess(t *testing.T) {
52 c := NewParallelCLI(t)
53 const projectName = "hooks-post-start-success"
54
55 t.Cleanup(func() {
56 c.RunDockerComposeCmd(t, "--project-name", projectName, "down", "-v", "--remove-orphans", "-t", "0")
57 })
58
59 res := c.RunDockerComposeCmd(t, "-f", "fixtures/hooks/poststart/compose-success.yaml", "--project-name", projectName, "up", "-d")
60 res.Assert(t, icmd.Expected{ExitCode: 0})
61}
62
63func TestPreStopHookSuccess(t *testing.T) {
64 c := NewParallelCLI(t)

Callers

nothing calls this directly

Calls 2

NewParallelCLIFunction · 0.85
RunDockerComposeCmdMethod · 0.80

Tested by

no test coverage detected