test: implemented test for invalid input

Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
Sam Alba 2021-07-12 10:52:36 +02:00
parent b37db8eedb
commit 2e883ae47c

View File

@ -137,6 +137,14 @@ setup() {
dagger_new_with_plan input "$TESTDIR"/cli/input/simple dagger_new_with_plan input "$TESTDIR"/cli/input/simple
# wrong input type
run "$DAGGER" input -e "input" secret "input" "my input"
assert_failure
# invalid input
run "$DAGGER" input -e "input" secret "input.notexist" "my input"
assert_failure
# simple input # simple input
"$DAGGER" input -e "input" text "input" "my input" "$DAGGER" input -e "input" text "input" "my input"
"$DAGGER" up -e "input" "$DAGGER" up -e "input"