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:
parent
d19dd4d193
commit
a53b9ec166
@ -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
|
|
||||||
}
|
|
||||||
}
|
|
@ -20,7 +20,7 @@ TestRun: {
|
|||||||
|
|
||||||
run: docker.#Run & {
|
run: docker.#Run & {
|
||||||
ref: "hello-world"
|
ref: "hello-world"
|
||||||
name: "daggerci-test-simple-\(suffix.out)"
|
name: "daggerci-test-ssh-passphrase-\(suffix.out)"
|
||||||
|
|
||||||
ssh: {
|
ssh: {
|
||||||
host: TestConfig.host
|
host: TestConfig.host
|
||||||
|
@ -19,7 +19,7 @@ TestRun: {
|
|||||||
}
|
}
|
||||||
|
|
||||||
run: docker.#Run & {
|
run: docker.#Run & {
|
||||||
name: "daggerci-test-simple-\(suffix.out)"
|
name: "daggerci-test-ssh-wrong-passphrase-\(suffix.out)"
|
||||||
ref: "hello-world"
|
ref: "hello-world"
|
||||||
|
|
||||||
ssh: {
|
ssh: {
|
||||||
|
@ -18,7 +18,7 @@ TestSSH: {
|
|||||||
}
|
}
|
||||||
|
|
||||||
run: docker.#Run & {
|
run: docker.#Run & {
|
||||||
name: "daggerci-test-simple-\(suffix.out)"
|
name: "daggerci-test-ssh-\(suffix.out)"
|
||||||
ref: "hello-world"
|
ref: "hello-world"
|
||||||
|
|
||||||
ssh: {
|
ssh: {
|
||||||
|
Reference in New Issue
Block a user