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

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

View File

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

View File

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

View File

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

View File

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