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,36 +1,33 @@
package testing
import "dagger.io/dagger/op"
busybox1: #up: [
{
do: "fetch-container"
op.#FetchContainer & {
ref: "busybox"
},
]
busybox2: #up: [
{
do: "fetch-container"
op.#FetchContainer & {
ref: "busybox:latest"
},
]
busybox3: #up: [
{
do: "fetch-container"
op.#FetchContainer & {
ref: "busybox:1.33-musl"
},
]
busybox4: #up: [
{
do: "fetch-container"
op.#FetchContainer & {
ref: "busybox@sha256:e2af53705b841ace3ab3a44998663d4251d33ee8a9acaf71b66df4ae01c3bbe7"
},
]
busybox5: #up: [
{
do: "fetch-container"
op.#FetchContainer & {
ref: "busybox:1.33-musl@sha256:e2af53705b841ace3ab3a44998663d4251d33ee8a9acaf71b66df4ae01c3bbe7"
},
]

View File

@@ -1,7 +1,8 @@
package testing
import "dagger.io/dagger/op"
#up: [
{
do: "fetch-container"
op.#FetchContainer & {
},
]

View File

@@ -1,8 +1,9 @@
package testing
import "dagger.io/dagger/op"
#up: [
{
do: "fetch-container"
op.#FetchContainer & {
ref: "alpine@sha256:c6c7524e2111f22a9f7577211232d89a9e68cf5b9ed4a41ba77957c9771380a5"
},
]

View File

@@ -1,10 +1,11 @@
package testing
import "dagger.io/dagger/op"
// XXX WATCHOUT
// Once buildkit has pulled that digest, it will stay cached and happily succeed WHATEVER the image name then is
#up: [
{
do: "fetch-container"
op.#FetchContainer & {
ref: "busyboxaaa@sha256:e2af53705b841ace3ab3a44998663d4251d33ee8a9acaf71b66df4ae01c3bbe7"
},
]

View File

@@ -1,8 +1,9 @@
package testing
import "dagger.io/dagger/op"
#up: [
{
do: "fetch-container"
op.#FetchContainer & {
ref: "doesnotexist"
},
]

View File

@@ -1,8 +1,9 @@
package testing
import "dagger.io/dagger/op"
#up: [
{
do: "fetch-container"
op.#FetchContainer & {
ref: "alpine:doesnotexist"
},
]