tests: use different container prefix for docker tests

Avoid name conflicts when random returns the same string

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi 2021-06-09 11:40:32 -07:00
parent d19dd4d193
commit a53b9ec166
4 changed files with 3 additions and 29 deletions

View File

@ -1,26 +0,0 @@
package docker
import (
"dagger.io/docker"
"dagger.io/dagger"
"dagger.io/random"
)
key: dagger.#Secret @dagger(input)
passphrase: dagger.#Secret @dagger(input)
user: string @dagger(input)
TestRun: {
suffix: random.#String & {
seed: ""
}
run: docker.#Run & {
host: "143.198.64.230"
ref: "nginx:alpine"
"user": user
"passphrase": passphrase
name: "daggerci-test-simple-\(suffix.out)"
"key": key
}
}

View File

@ -20,7 +20,7 @@ TestRun: {
run: docker.#Run & {
ref: "hello-world"
name: "daggerci-test-simple-\(suffix.out)"
name: "daggerci-test-ssh-passphrase-\(suffix.out)"
ssh: {
host: TestConfig.host

View File

@ -19,7 +19,7 @@ TestRun: {
}
run: docker.#Run & {
name: "daggerci-test-simple-\(suffix.out)"
name: "daggerci-test-ssh-wrong-passphrase-\(suffix.out)"
ref: "hello-world"
ssh: {

View File

@ -18,7 +18,7 @@ TestSSH: {
}
run: docker.#Run & {
name: "daggerci-test-simple-\(suffix.out)"
name: "daggerci-test-ssh-\(suffix.out)"
ref: "hello-world"
ssh: {