diff --git a/tests/cli.bats b/tests/cli.bats index 9b075158..d7927380 100644 --- a/tests/cli.bats +++ b/tests/cli.bats @@ -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 } diff --git a/tests/cli/output/list/main.cue b/tests/cli/output/list/main.cue index 851b7fc9..18a3ef5d 100644 --- a/tests/cli/output/list/main.cue +++ b/tests/cli/output/list/main.cue @@ -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: {