test: updates output list tests
Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
parent
06a515f496
commit
3d1e37e1ab
@ -326,13 +326,7 @@ setup() {
|
||||
|
||||
dagger_new_with_plan list "$TESTDIR"/cli/output/list
|
||||
|
||||
run "$DAGGER" output list -e "list"
|
||||
assert_failure
|
||||
|
||||
"$DAGGER" up -e "list"
|
||||
|
||||
out="$("$DAGGER" output list -e "list")"
|
||||
outAll="$("$DAGGER" output list --all -e "list")"
|
||||
|
||||
run bash -c "echo \"$out\" | grep cfgInline.url | grep 'http://this.is.a.test/' | grep 'test url description'"
|
||||
assert_success
|
||||
@ -343,12 +337,12 @@ setup() {
|
||||
run bash -c "echo \"$out\" | grep cfg2.url | grep 'http://this.is.a.test/' | grep 'test url description'"
|
||||
assert_success
|
||||
|
||||
run bash -c "echo \"$out\" | grep cfg.str"
|
||||
assert_failure
|
||||
|
||||
run bash -c "echo \"$outAll\" | grep cfg.str"
|
||||
run bash -c "echo \"$out\" | grep cfg.foo | grep '*42 | int'"
|
||||
assert_success
|
||||
|
||||
run bash -c "echo \"$outAll\" | grep cfg2.url"
|
||||
run bash -c "echo \"$out\" | grep cfg2.bar | grep 'dagger.#Artifact'"
|
||||
assert_success
|
||||
|
||||
run bash -c "echo \"$out\" | grep cfg2.str | grep 'string'"
|
||||
assert_success
|
||||
}
|
||||
|
@ -1,5 +1,9 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"dagger.io/dagger"
|
||||
)
|
||||
|
||||
#A: {
|
||||
// a string
|
||||
str: string @dagger(output)
|
||||
@ -9,6 +13,9 @@ package main
|
||||
// test url description
|
||||
url: "http://this.is.a.test/" @dagger(output)
|
||||
url2: url
|
||||
foo: int | *42 @dagger(output)
|
||||
|
||||
bar: dagger.#Artifact @dagger(output)
|
||||
}
|
||||
|
||||
cfgInline: {
|
||||
|
Reference in New Issue
Block a user