mirror of
https://github.com/docker/compose.git
synced 2026-09-01 07:11:06 +00:00
Ensure local compose E2E are run in CI.
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
This commit is contained in:
parent
10a19b1159
commit
6d34f28beb
3 changed files with 5 additions and 6 deletions
|
|
@ -57,7 +57,7 @@ func TestLocalComposeUp(t *testing.T) {
|
|||
res := c.RunDockerCmd("compose", "ps", "-p", projectName)
|
||||
res.Assert(t, icmd.Expected{Out: `web`})
|
||||
|
||||
endpoint := "http://localhost:80"
|
||||
endpoint := "http://localhost:90"
|
||||
output := HTTPGetWithRetry(t, endpoint+"/words/noun", http.StatusOK, 2*time.Second, 20*time.Second)
|
||||
assert.Assert(t, strings.Contains(output, `"word":`))
|
||||
|
||||
|
|
|
|||
|
|
@ -4,10 +4,10 @@ services:
|
|||
words:
|
||||
image: gtardif/sentences-api
|
||||
ports:
|
||||
- "8080:8080"
|
||||
- "95:8080"
|
||||
web:
|
||||
image: gtardif/sentences-web
|
||||
ports:
|
||||
- "80:80"
|
||||
- "90:80"
|
||||
labels:
|
||||
- "my-label=test"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue