fixed ci
Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
parent
3d1e37e1ab
commit
2bd4679646
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ import (
|
|||||||
// test url description
|
// test url description
|
||||||
url: "http://this.is.a.test/" @dagger(output)
|
url: "http://this.is.a.test/" @dagger(output)
|
||||||
url2: url
|
url2: url
|
||||||
foo: int | *42 @dagger(output)
|
foo: int | *42 @dagger(output)
|
||||||
|
|
||||||
bar: dagger.#Artifact @dagger(output)
|
bar: dagger.#Artifact @dagger(output)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user