test: implemented test for invalid input
Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
parent
b37db8eedb
commit
2e883ae47c
@ -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"
|
||||||
|
Reference in New Issue
Block a user