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,26 +1,26 @@
package testing
component: #up: [{
do: "fetch-container"
ref: "alpine"
}, {
do: "exec"
args: ["sh", "-c", """
printf lol > /id
"""]
dir: "/"
}]
import "dagger.io/dagger/op"
component: #up: [
op.#FetchContainer & {
ref: "alpine"
},
op.#Exec & {
args: ["sh", "-c", """
printf lol > /id
"""]
},
]
test1: {
string
#up: [
{
do: "load"
op.#Load & {
from: component
},
{
do: "export"
op.#Export & {
source: "/id"
format: "string"
},
@@ -31,21 +31,19 @@ test2: {
string
#up: [
{
do: "load"
from: #up: [{
do: "fetch-container"
ref: "alpine"
}, {
do: "exec"
args: ["sh", "-c", """
printf lol > /id
"""]
dir: "/"
}]
op.#Load & {
from: #up: [
op.#FetchContainer & {
ref: "alpine"
},
op.#Exec & {
args: ["sh", "-c", """
printf lol > /id
"""]
},
]
},
{
do: "export"
op.#Export & {
source: "/id"
format: "string"
},