From 2e883ae47cb9e0d47613e1cf5d7a4af5105b9cb0 Mon Sep 17 00:00:00 2001 From: Sam Alba Date: Mon, 12 Jul 2021 10:52:36 +0200 Subject: [PATCH] test: implemented test for invalid input Signed-off-by: Sam Alba --- tests/cli.bats | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/cli.bats b/tests/cli.bats index b696c8ac..01041356 100644 --- a/tests/cli.bats +++ b/tests/cli.bats @@ -137,6 +137,14 @@ setup() { 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 "$DAGGER" input -e "input" text "input" "my input" "$DAGGER" up -e "input"