(t *testing.T)
| 108 | } |
| 109 | |
| 110 | func TestPostStartAndPreStopHook(t *testing.T) { |
| 111 | c := NewParallelCLI(t) |
| 112 | const projectName = "hooks-post-start-and-pre-stop" |
| 113 | |
| 114 | t.Cleanup(func() { |
| 115 | res := c.RunDockerComposeCmd(t, "-f", "fixtures/hooks/compose.yaml", "--project-name", projectName, "down", "-v", "--remove-orphans", "-t", "0") |
| 116 | res.Assert(t, icmd.Expected{ExitCode: 0}) |
| 117 | }) |
| 118 | |
| 119 | res := c.RunDockerComposeCmd(t, "-f", "fixtures/hooks/compose.yaml", "--project-name", projectName, "up", "-d") |
| 120 | res.Assert(t, icmd.Expected{ExitCode: 0}) |
| 121 | } |
| 122 | |
| 123 | func TestPreStartHookSuccess(t *testing.T) { |
| 124 | c := NewParallelCLI(t) |
nothing calls this directly
no test coverage detected