tests: move input inside compute

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi
2021-03-31 19:15:48 -07:00
parent 4b682a8e3f
commit 8917017e16
3 changed files with 22 additions and 23 deletions

View File

@@ -0,0 +1,27 @@
package testing
X1=in: string | *"default input"
test: {
string
#compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo -n "received: \(X1)" > /out
"""]
// XXX Blocked by https://github.com/blocklayerhq/dagger/issues/19
dir: "/"
},
{
do: "export"
source: "/out"
format: "string"
},
]
}