Merge pull request #747 from TomChv/parallel-compose-tests

Compose tests doesn't bind a special port anymore
This commit is contained in:
Andrea Luzzardi 2021-06-30 12:31:47 +02:00 committed by GitHub
commit cc1e0cd6dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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