refactored tests to account for lib reorg
Signed-off-by: Richard Jones <richard@dagger.io>
This commit is contained in:
parent
4768425037
commit
0ed6327344
@ -1,11 +1,11 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"alpha.dagger.io/europa/dagger/engine"
|
||||
"alpha.dagger.io/europa/dagger"
|
||||
"alpha.dagger.io/os"
|
||||
)
|
||||
|
||||
engine.#Plan & {
|
||||
dagger.#Plan & {
|
||||
actions: {
|
||||
sayHello: os.#Container & {
|
||||
command: "echo Hello Europa! > /out.txt"
|
||||
|
@ -7,8 +7,8 @@ import (
|
||||
)
|
||||
|
||||
engine.#Plan & {
|
||||
// should fail
|
||||
context: services: dockerSocket: {}
|
||||
// should fail due to incomplete service
|
||||
proxy: dockerSocket: {}
|
||||
|
||||
actions: test: #up: [
|
||||
op.#Load & {
|
||||
@ -19,7 +19,7 @@ engine.#Plan & {
|
||||
|
||||
op.#Exec & {
|
||||
always: true
|
||||
mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service
|
||||
mount: "/var/run/docker.sock": stream: proxy.dockerSocket.service
|
||||
args: ["docker", "info"]
|
||||
},
|
||||
]
|
||||
|
@ -7,8 +7,8 @@ import (
|
||||
)
|
||||
|
||||
engine.#Plan & {
|
||||
// should succeed
|
||||
context: services: dockerSocket: unix: string
|
||||
// should fail because incomplete value
|
||||
proxy: dockerSocket: unix: string
|
||||
|
||||
actions: test: #up: [
|
||||
op.#Load & {
|
||||
@ -19,7 +19,7 @@ engine.#Plan & {
|
||||
|
||||
op.#Exec & {
|
||||
always: true
|
||||
mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service
|
||||
mount: "/var/run/docker.sock": stream: proxy.dockerSocket.service
|
||||
args: ["docker", "info"]
|
||||
},
|
||||
]
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
|
||||
engine.#Plan & {
|
||||
// should fail because of misspelled key
|
||||
context: services: dockerSocket: unx: "/var/run/docker.soc"
|
||||
proxy: dockerSocket: unx: "/var/run/docker.sock"
|
||||
|
||||
actions: test: #up: [
|
||||
op.#Load & {
|
||||
@ -19,7 +19,7 @@ engine.#Plan & {
|
||||
|
||||
op.#Exec & {
|
||||
always: true
|
||||
mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service
|
||||
mount: "/var/run/docker.sock": stream: proxy.dockerSocket.service
|
||||
args: ["docker", "info"]
|
||||
},
|
||||
]
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
|
||||
engine.#Plan & {
|
||||
// should fail because of misspelled value
|
||||
context: services: dockerSocket: unix: "/var/run/docker.soc"
|
||||
proxy: dockerSocket: unix: "/var/run/docker.soc"
|
||||
|
||||
actions: test: #up: [
|
||||
op.#Load & {
|
||||
@ -19,7 +19,7 @@ engine.#Plan & {
|
||||
|
||||
op.#Exec & {
|
||||
always: true
|
||||
mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service
|
||||
mount: "/var/run/docker.sock": stream: proxy.dockerSocket.service
|
||||
args: ["docker", "info"]
|
||||
},
|
||||
]
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
|
||||
engine.#Plan & {
|
||||
// should succeed
|
||||
context: services: dockerSocket: unix: "/var/run/docker.sock"
|
||||
proxy: dockerSocket: unix: "/var/run/docker.sock"
|
||||
|
||||
actions: test: #up: [
|
||||
op.#Load & {
|
||||
@ -19,7 +19,7 @@ engine.#Plan & {
|
||||
|
||||
op.#Exec & {
|
||||
always: true
|
||||
mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service
|
||||
mount: "/var/run/docker.sock": stream: proxy.dockerSocket.service
|
||||
args: ["docker", "info"]
|
||||
},
|
||||
]
|
||||
|
Reference in New Issue
Block a user