Signed-off-by: Richard Jones <richard@dagger.io>
This commit is contained in:
Richard Jones 2021-12-14 14:30:32 -07:00
parent c422512155
commit 7601433729
5 changed files with 65 additions and 75 deletions

View File

@ -10,8 +10,7 @@ engine.#Plan & {
// should fail // should fail
context: services: dockerSocket: {} context: services: dockerSocket: {}
actions: { actions: test: #up: [
test: #up: [
op.#Load & { op.#Load & {
from: alpine.#Image & { from: alpine.#Image & {
package: "docker-cli": true package: "docker-cli": true
@ -22,7 +21,6 @@ engine.#Plan & {
always: true always: true
mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service
args: ["docker", "info"] args: ["docker", "info"]
} },
] ]
} }
}

View File

@ -10,8 +10,7 @@ engine.#Plan & {
// should succeed // should succeed
context: services: dockerSocket: unix: string context: services: dockerSocket: unix: string
actions: { actions: test: #up: [
test: #up: [
op.#Load & { op.#Load & {
from: alpine.#Image & { from: alpine.#Image & {
package: "docker-cli": true package: "docker-cli": true
@ -22,7 +21,6 @@ engine.#Plan & {
always: true always: true
mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service
args: ["docker", "info"] args: ["docker", "info"]
} },
] ]
} }
}

View File

@ -10,8 +10,7 @@ engine.#Plan & {
// should fail because of misspelled key // should fail because of misspelled key
context: services: dockerSocket: unx: "/var/run/docker.soc" context: services: dockerSocket: unx: "/var/run/docker.soc"
actions: { actions: test: #up: [
test: #up: [
op.#Load & { op.#Load & {
from: alpine.#Image & { from: alpine.#Image & {
package: "docker-cli": true package: "docker-cli": true
@ -22,7 +21,6 @@ engine.#Plan & {
always: true always: true
mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service
args: ["docker", "info"] args: ["docker", "info"]
} },
] ]
} }
}

View File

@ -10,8 +10,7 @@ engine.#Plan & {
// should fail because of misspelled value // should fail because of misspelled value
context: services: dockerSocket: unix: "/var/run/docker.soc" context: services: dockerSocket: unix: "/var/run/docker.soc"
actions: { actions: test: #up: [
test: #up: [
op.#Load & { op.#Load & {
from: alpine.#Image & { from: alpine.#Image & {
package: "docker-cli": true package: "docker-cli": true
@ -22,7 +21,6 @@ engine.#Plan & {
always: true always: true
mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service
args: ["docker", "info"] args: ["docker", "info"]
} },
] ]
} }
}

View File

@ -10,8 +10,7 @@ engine.#Plan & {
// should succeed // should succeed
context: services: dockerSocket: unix: "/var/run/docker.sock" context: services: dockerSocket: unix: "/var/run/docker.sock"
actions: { actions: test: #up: [
test: #up: [
op.#Load & { op.#Load & {
from: alpine.#Image & { from: alpine.#Image & {
package: "docker-cli": true package: "docker-cli": true
@ -22,7 +21,6 @@ engine.#Plan & {
always: true always: true
mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service
args: ["docker", "info"] args: ["docker", "info"]
} },
] ]
} }
}