(t *testing.T)
| 111 | } |
| 112 | |
| 113 | func TestPauseServiceDoesNotExist(t *testing.T) { |
| 114 | cli := NewParallelCLI(t, WithEnv( |
| 115 | "COMPOSE_PROJECT_NAME=e2e-pause-svc-not-exist", |
| 116 | "COMPOSE_FILE=./fixtures/pause/compose.yaml")) |
| 117 | |
| 118 | cleanup := func() { |
| 119 | cli.RunDockerComposeCmd(t, "down", "-v", "--remove-orphans", "-t", "0") |
| 120 | } |
| 121 | cleanup() |
| 122 | t.Cleanup(cleanup) |
| 123 | |
| 124 | // pause a and verify that it can no longer be hit but b still can |
| 125 | res := cli.RunDockerComposeCmdNoCheck(t, "pause", "does_not_exist") |
| 126 | // TODO: `compose down does_not_exist` and similar error, this should too |
| 127 | res.Assert(t, icmd.Expected{ExitCode: 0}) |
| 128 | } |
| 129 | |
| 130 | func urlForService(t testing.TB, cli *CLI, service string, targetPort int) string { |
| 131 | t.Helper() |
nothing calls this directly
no test coverage detected