tests: add query tests

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi
2021-04-08 18:31:10 -07:00
parent 43a34f0b04
commit 65ebbc8ecb
3 changed files with 62 additions and 26 deletions

View File

@@ -4,8 +4,18 @@ import "dagger.io/dagger/op"
foo: "value"
bar: "another value"
#up: [
op.#FetchContainer & {ref: "busybox"},
op.#Exec & {args: ["true"]},
]
computed: {
string
#up: [
op.#FetchContainer & {ref: "busybox"},
op.#Exec & {
args: ["sh", "-c", """
printf test > /export
"""]
},
op.#Export & {
source: "/export"
format: "string"
},
]
}