tests: ops: use proper imports

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi
2021-04-14 16:44:34 -07:00
parent 381db37ca3
commit 1f640d3e25
48 changed files with 325 additions and 357 deletions

View File

@@ -1,33 +1,34 @@
package testing
import "dagger.io/dagger/op"
test: {
string
#up: [
{
do: "load"
from: [{do: "fetch-container", ref: "alpine"}]
op.#Load & {
from: [
op.#FetchContainer & {
ref: "alpine"
},
]
},
{
do: "exec"
op.#Exec & {
args: ["sh", "-c", """
cat /mnt/test/lol > /out
"""]
mount: "/mnt/test": from: #up: [
{
do: "fetch-container"
op.#FetchContainer & {
ref: "alpine"
},
{
do: "exec"
op.#Exec & {
args: ["sh", "-c", """
echo -n "hello world" > /lol
"""]
},
]
},
{
do: "export"
op.#Export & {
source: "/out"
format: "string"
},