From a53b9ec166f2638d3ca9d77c35cb19713861dc6d Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Wed, 9 Jun 2021 11:40:32 -0700 Subject: [PATCH] tests: use different container prefix for docker tests Avoid name conflicts when random returns the same string Signed-off-by: Andrea Luzzardi --- .../.dagger/env/default/plan/passphrase.cue | 26 ------------------- .../.dagger/env/default/plan/passphrase.cue | 2 +- .../env/default/plan/wrong-passphrase.cue | 2 +- .../ssh/.dagger/env/default/plan/simple.cue | 2 +- 4 files changed, 3 insertions(+), 29 deletions(-) delete mode 100644 tests/stdlib/docker/run/passphrase/.dagger/env/default/plan/passphrase.cue diff --git a/tests/stdlib/docker/run/passphrase/.dagger/env/default/plan/passphrase.cue b/tests/stdlib/docker/run/passphrase/.dagger/env/default/plan/passphrase.cue deleted file mode 100644 index 091272b0..00000000 --- a/tests/stdlib/docker/run/passphrase/.dagger/env/default/plan/passphrase.cue +++ /dev/null @@ -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 - } -} diff --git a/tests/stdlib/docker/run/ssh-passphrase/.dagger/env/default/plan/passphrase.cue b/tests/stdlib/docker/run/ssh-passphrase/.dagger/env/default/plan/passphrase.cue index f29a77a3..750d5c5d 100644 --- a/tests/stdlib/docker/run/ssh-passphrase/.dagger/env/default/plan/passphrase.cue +++ b/tests/stdlib/docker/run/ssh-passphrase/.dagger/env/default/plan/passphrase.cue @@ -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 diff --git a/tests/stdlib/docker/run/ssh-wrong-passphrase/.dagger/env/default/plan/wrong-passphrase.cue b/tests/stdlib/docker/run/ssh-wrong-passphrase/.dagger/env/default/plan/wrong-passphrase.cue index 092fa3e4..05c40688 100644 --- a/tests/stdlib/docker/run/ssh-wrong-passphrase/.dagger/env/default/plan/wrong-passphrase.cue +++ b/tests/stdlib/docker/run/ssh-wrong-passphrase/.dagger/env/default/plan/wrong-passphrase.cue @@ -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: { diff --git a/tests/stdlib/docker/run/ssh/.dagger/env/default/plan/simple.cue b/tests/stdlib/docker/run/ssh/.dagger/env/default/plan/simple.cue index 830ffcbf..17b7499f 100644 --- a/tests/stdlib/docker/run/ssh/.dagger/env/default/plan/simple.cue +++ b/tests/stdlib/docker/run/ssh/.dagger/env/default/plan/simple.cue @@ -18,7 +18,7 @@ TestSSH: { } run: docker.#Run & { - name: "daggerci-test-simple-\(suffix.out)" + name: "daggerci-test-ssh-\(suffix.out)" ref: "hello-world" ssh: {