Remove path based task lookup

Signed-off-by: Helder Correia <174525+helderco@users.noreply.github.com>
This commit is contained in:
Helder Correia
2022-03-09 11:29:26 -01:00
parent 17c45ea36c
commit 34b6c289dd
7 changed files with 71 additions and 109 deletions

View File

@@ -150,22 +150,23 @@ setup() {
export TEST_STRING="foo"
export TEST_SECRET="bar"
"$DAGGER" "do" -p ./plan/client/env test usage
"$DAGGER" "do" -p ./plan/client/env/usage.cue test
}
@test "plan/client/env not exists" {
cd "${TESTDIR}"
run "$DAGGER" "do" -p ./plan/client/env test usage
run "$DAGGER" "do" -p ./plan/client/env/usage.cue test
assert_failure
assert_output --regexp "environment variable \"TEST_(STRING|SECRET)\" not set"
}
@test "plan/client/env invalid" {
@test "plan/client/env concrete" {
cd "${TESTDIR}"
export TEST_FAIL="foobar"
run "$DAGGER" "do" -p ./plan/client/env test concrete
run "$DAGGER" "do" -p ./plan/client/env/concrete.cue test
assert_failure
assert_output --partial "TEST_FAIL: unexpected concrete value"
}