Compose tests doesn't bind a special port anymore

Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
This commit is contained in:
Tom Chauveau 2021-06-28 17:36:01 +02:00
parent 14062c3c38
commit 8e8438e464
2 changed files with 6 additions and 2 deletions

View File

@ -15,6 +15,8 @@ TestSSH: {
} }
TestCompose: { TestCompose: {
// Generate a random string.
// Seed is used to force buildkit execution and not simply use a previous generated string.
suffix: random.#String & {seed: "cmp"} suffix: random.#String & {seed: "cmp"}
name: "compose_test_\(suffix.out)" name: "compose_test_\(suffix.out)"
@ -44,6 +46,8 @@ TestCompose: {
} }
TestInlineCompose: { TestInlineCompose: {
// Generate a random string.
// Seed is used to force buildkit execution and not simply use a previous generated string.
suffix: random.#String & {seed: "cmp-inline"} suffix: random.#String & {seed: "cmp-inline"}
name: "inline_test_\(suffix.out)" name: "inline_test_\(suffix.out)"
@ -65,7 +69,7 @@ TestInlineCompose: {
environment: environment:
PORT: 7000 PORT: 7000
ports: ports:
- 7000:7000 - 7000
"""# """#
} }

View File

@ -4,4 +4,4 @@ services:
api: api:
build: "" build: ""
ports: ports:
- "8080:8080" - 8080