tests: ops: use proper imports
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
32
tests/ops/copy/invalid/cache/main.cue
vendored
32
tests/ops/copy/invalid/cache/main.cue
vendored
@@ -1,21 +1,24 @@
|
||||
package testing
|
||||
|
||||
import "dagger.io/dagger/op"
|
||||
|
||||
test1: {
|
||||
string
|
||||
|
||||
#up: [
|
||||
{
|
||||
do: "fetch-container"
|
||||
op.#FetchContainer & {
|
||||
ref: "busybox"
|
||||
},
|
||||
{
|
||||
do: "copy"
|
||||
from: [{do: "fetch-container", ref: "alpine"}]
|
||||
op.#Copy & {
|
||||
from: [
|
||||
op.#FetchContainer & {
|
||||
ref: "alpine"
|
||||
},
|
||||
]
|
||||
src: "/etc/issue"
|
||||
dest: "/"
|
||||
},
|
||||
{
|
||||
do: "export"
|
||||
op.#Export & {
|
||||
source: "/issue"
|
||||
format: "string"
|
||||
},
|
||||
@@ -26,18 +29,19 @@ test2: {
|
||||
string
|
||||
|
||||
#up: [
|
||||
{
|
||||
do: "fetch-container"
|
||||
op.#FetchContainer & {
|
||||
ref: "busybox"
|
||||
},
|
||||
{
|
||||
do: "copy"
|
||||
from: [{do: "fetch-container", ref: "busybox"}]
|
||||
op.#Copy & {
|
||||
from: [
|
||||
op.#FetchContainer & {
|
||||
ref: "busybox"
|
||||
},
|
||||
]
|
||||
src: "/etc/issue"
|
||||
dest: "/"
|
||||
},
|
||||
{
|
||||
do: "export"
|
||||
op.#Export & {
|
||||
source: "/issue"
|
||||
format: "string"
|
||||
},
|
||||
|
@@ -1,32 +1,31 @@
|
||||
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: "fetch-container"
|
||||
op.#FetchContainer & {
|
||||
ref: "busybox"
|
||||
},
|
||||
{
|
||||
do: "copy"
|
||||
op.#Copy & {
|
||||
from: component
|
||||
src: "/id"
|
||||
dest: "/"
|
||||
},
|
||||
{
|
||||
do: "export"
|
||||
op.#Export & {
|
||||
source: "/id"
|
||||
format: "string"
|
||||
},
|
||||
@@ -37,27 +36,24 @@ test2: {
|
||||
string
|
||||
|
||||
#up: [
|
||||
{
|
||||
do: "fetch-container"
|
||||
op.#FetchContainer & {
|
||||
ref: "busybox"
|
||||
},
|
||||
{
|
||||
do: "copy"
|
||||
from: #up: [{
|
||||
do: "fetch-container"
|
||||
ref: "alpine"
|
||||
}, {
|
||||
do: "exec"
|
||||
args: ["sh", "-c", """
|
||||
printf lol > /id
|
||||
"""]
|
||||
dir: "/"
|
||||
}]
|
||||
op.#Copy & {
|
||||
from: #up: [
|
||||
op.#FetchContainer & {
|
||||
ref: "alpine"
|
||||
},
|
||||
op.#Exec & {
|
||||
args: ["sh", "-c", """
|
||||
printf lol > /id
|
||||
"""]
|
||||
},
|
||||
]
|
||||
src: "/id"
|
||||
dest: "/"
|
||||
},
|
||||
{
|
||||
do: "export"
|
||||
op.#Export & {
|
||||
source: "/id"
|
||||
format: "string"
|
||||
},
|
||||
|
@@ -1,21 +1,24 @@
|
||||
package testing
|
||||
|
||||
import "dagger.io/dagger/op"
|
||||
|
||||
test: {
|
||||
string
|
||||
|
||||
#up: [
|
||||
{
|
||||
do: "fetch-container"
|
||||
op.#FetchContainer & {
|
||||
ref: "busybox"
|
||||
},
|
||||
{
|
||||
do: "copy"
|
||||
from: [{do: "fetch-container", ref: "alpine"}]
|
||||
op.#Copy & {
|
||||
from: [
|
||||
op.#FetchContainer & {
|
||||
ref: "alpine"
|
||||
},
|
||||
]
|
||||
src: "/etc/issue"
|
||||
dest: "/"
|
||||
},
|
||||
{
|
||||
do: "export"
|
||||
op.#Export & {
|
||||
source: "/issue"
|
||||
format: "string"
|
||||
},
|
||||
|
Reference in New Issue
Block a user