Add test for docker example
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
This commit is contained in:
27
tests/stdlib/docker/pull/pull.cue
Normal file
27
tests/stdlib/docker/pull/pull.cue
Normal file
@@ -0,0 +1,27 @@
|
||||
package docker
|
||||
|
||||
import (
|
||||
"dagger.io/dagger/op"
|
||||
"dagger.io/docker"
|
||||
)
|
||||
|
||||
TestImageFromRegistry: {
|
||||
image: docker.#Pull & {
|
||||
from: "index.docker.io/the0only0vasek/alpine-test"
|
||||
}
|
||||
|
||||
verify: #up: [
|
||||
op.#Load & {
|
||||
from: image
|
||||
},
|
||||
|
||||
op.#Exec & {
|
||||
always: true
|
||||
args: [
|
||||
"sh", "-c", """
|
||||
grep -q "test" /test.txt
|
||||
""",
|
||||
]
|
||||
},
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user