Ensure local compose E2E are run in CI.

Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
This commit is contained in:
Guillaume Tardif 2020-12-15 12:42:17 +01:00
parent 10a19b1159
commit 6d34f28beb
3 changed files with 5 additions and 6 deletions

View file

@ -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":`))

View file

@ -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"