Fix default client env when var is set (#2128)

Signed-off-by: Helder Correia <174525+helderco@users.noreply.github.com>
This commit is contained in:
Helder Correia
2022-04-11 19:35:17 +00:00
committed by GitHub
parent 80ae63928b
commit defb4642cd
3 changed files with 30 additions and 1 deletions

View File

@@ -183,6 +183,16 @@ setup() {
export TEST_SECRET="bar"
"$DAGGER" "do" -p ./plan/client/env/usage.cue test
}
@test "plan/client/env default" {
cd "${TESTDIR}"
export TEST_DEFAULT="hello universe"
"$DAGGER" "do" -p ./plan/client/env/default.cue test
}
@test "plan/client/env not exists" {