(t *testing.T)
| 61 | } |
| 62 | |
| 63 | func TestPreStopHookSuccess(t *testing.T) { |
| 64 | c := NewParallelCLI(t) |
| 65 | const projectName = "hooks-pre-stop-success" |
| 66 | |
| 67 | t.Cleanup(func() { |
| 68 | c.RunDockerComposeCmd(t, "-f", "fixtures/hooks/prestop/compose-success.yaml", "--project-name", projectName, "down", "-v", "--remove-orphans", "-t", "0") |
| 69 | }) |
| 70 | |
| 71 | res := c.RunDockerComposeCmd(t, "-f", "fixtures/hooks/prestop/compose-success.yaml", "--project-name", projectName, "up", "-d") |
| 72 | res.Assert(t, icmd.Expected{ExitCode: 0}) |
| 73 | |
| 74 | res = c.RunDockerComposeCmd(t, "-f", "fixtures/hooks/prestop/compose-success.yaml", "--project-name", projectName, "down", "-v", "--remove-orphans", "-t", "0") |
| 75 | res.Assert(t, icmd.Expected{ExitCode: 0}) |
| 76 | } |
| 77 | |
| 78 | func TestPreStopHookInError(t *testing.T) { |
| 79 | c := NewParallelCLI(t) |
nothing calls this directly
no test coverage detected