Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
Sam Alba 2021-06-01 15:12:08 +02:00
parent 3d1e37e1ab
commit 2bd4679646
2 changed files with 6 additions and 6 deletions

View File

@ -296,28 +296,28 @@ setup() {
outAll="$("$DAGGER" input list --all -e "list")" outAll="$("$DAGGER" input list --all -e "list")"
#note: this is the recommended way to use pipes with bats #note: this is the recommended way to use pipes with bats
run bash -c "echo \"$out\" | grep awsConfig.accessKey | grep '#Secret' | grep false" run bash -c "echo \"$out\" | grep awsConfig.accessKey | grep 'dagger.#Secret' | grep 'AWS access key'"
assert_success assert_success
run bash -c "echo \"$out\" | grep cfgInline.source | grep '#Artifact' | grep false | grep 'source dir'" run bash -c "echo \"$out\" | grep cfgInline.source | grep 'dagger.#Artifact' | grep false | grep 'source dir'"
assert_success assert_success
run bash -c "echo \"$outAll\" | grep cfg2" run bash -c "echo \"$outAll\" | grep cfg2"
assert_failure assert_failure
run bash -c "echo \"$out\" | grep cfgInline.strDef | grep string | grep 'yolo (default)' | grep false" run bash -c "echo \"$out\" | grep cfgInline.strDef | grep '*yolo | string' | grep false"
assert_success assert_success
run bash -c "echo \"$out\" | grep cfg.num" run bash -c "echo \"$out\" | grep cfg.num"
assert_failure assert_failure
run bash -c "echo \"$outAll\" | grep cfg.num | grep int" run bash -c "echo \"$outAll\" | grep cfg.num | grep 21 | grep -v int"
assert_success assert_success
run bash -c "echo \"$out\" | grep cfg.strSet" run bash -c "echo \"$out\" | grep cfg.strSet"
assert_failure assert_failure
run bash -c "echo \"$outAll\" | grep cfg.strSet | grep string | grep pipo" run bash -c "echo \"$outAll\" | grep cfg.strSet | grep pipo"
assert_success assert_success
} }