(t *testing.T)
| 49 | } |
| 50 | |
| 51 | func 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 | |
| 63 | func TestPreStopHookSuccess(t *testing.T) { |
| 64 | c := NewParallelCLI(t) |
nothing calls this directly
no test coverage detected