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
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"alpha.dagger.io/europa/dagger/engine"
|
"alpha.dagger.io/europa/dagger"
|
||||||
"alpha.dagger.io/os"
|
"alpha.dagger.io/os"
|
||||||
)
|
)
|
||||||
|
|
||||||
engine.#Plan & {
|
dagger.#Plan & {
|
||||||
actions: {
|
actions: {
|
||||||
sayHello: os.#Container & {
|
sayHello: os.#Container & {
|
||||||
command: "echo Hello Europa! > /out.txt"
|
command: "echo Hello Europa! > /out.txt"
|
||||||
|
@ -7,8 +7,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
engine.#Plan & {
|
engine.#Plan & {
|
||||||
// should fail
|
// should fail due to incomplete service
|
||||||
context: services: dockerSocket: {}
|
proxy: dockerSocket: {}
|
||||||
|
|
||||||
actions: test: #up: [
|
actions: test: #up: [
|
||||||
op.#Load & {
|
op.#Load & {
|
||||||
@ -19,7 +19,7 @@ engine.#Plan & {
|
|||||||
|
|
||||||
op.#Exec & {
|
op.#Exec & {
|
||||||
always: true
|
always: true
|
||||||
mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service
|
mount: "/var/run/docker.sock": stream: proxy.dockerSocket.service
|
||||||
args: ["docker", "info"]
|
args: ["docker", "info"]
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
@ -7,8 +7,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
engine.#Plan & {
|
engine.#Plan & {
|
||||||
// should succeed
|
// should fail because incomplete value
|
||||||
context: services: dockerSocket: unix: string
|
proxy: dockerSocket: unix: string
|
||||||
|
|
||||||
actions: test: #up: [
|
actions: test: #up: [
|
||||||
op.#Load & {
|
op.#Load & {
|
||||||
@ -19,7 +19,7 @@ engine.#Plan & {
|
|||||||
|
|
||||||
op.#Exec & {
|
op.#Exec & {
|
||||||
always: true
|
always: true
|
||||||
mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service
|
mount: "/var/run/docker.sock": stream: proxy.dockerSocket.service
|
||||||
args: ["docker", "info"]
|
args: ["docker", "info"]
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
|
|
||||||
engine.#Plan & {
|
engine.#Plan & {
|
||||||
// should fail because of misspelled key
|
// should fail because of misspelled key
|
||||||
context: services: dockerSocket: unx: "/var/run/docker.soc"
|
proxy: dockerSocket: unx: "/var/run/docker.sock"
|
||||||
|
|
||||||
actions: test: #up: [
|
actions: test: #up: [
|
||||||
op.#Load & {
|
op.#Load & {
|
||||||
@ -19,7 +19,7 @@ engine.#Plan & {
|
|||||||
|
|
||||||
op.#Exec & {
|
op.#Exec & {
|
||||||
always: true
|
always: true
|
||||||
mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service
|
mount: "/var/run/docker.sock": stream: proxy.dockerSocket.service
|
||||||
args: ["docker", "info"]
|
args: ["docker", "info"]
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
|
|
||||||
engine.#Plan & {
|
engine.#Plan & {
|
||||||
// should fail because of misspelled value
|
// should fail because of misspelled value
|
||||||
context: services: dockerSocket: unix: "/var/run/docker.soc"
|
proxy: dockerSocket: unix: "/var/run/docker.soc"
|
||||||
|
|
||||||
actions: test: #up: [
|
actions: test: #up: [
|
||||||
op.#Load & {
|
op.#Load & {
|
||||||
@ -19,7 +19,7 @@ engine.#Plan & {
|
|||||||
|
|
||||||
op.#Exec & {
|
op.#Exec & {
|
||||||
always: true
|
always: true
|
||||||
mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service
|
mount: "/var/run/docker.sock": stream: proxy.dockerSocket.service
|
||||||
args: ["docker", "info"]
|
args: ["docker", "info"]
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
|
|
||||||
engine.#Plan & {
|
engine.#Plan & {
|
||||||
// should succeed
|
// should succeed
|
||||||
context: services: dockerSocket: unix: "/var/run/docker.sock"
|
proxy: dockerSocket: unix: "/var/run/docker.sock"
|
||||||
|
|
||||||
actions: test: #up: [
|
actions: test: #up: [
|
||||||
op.#Load & {
|
op.#Load & {
|
||||||
@ -19,7 +19,7 @@ engine.#Plan & {
|
|||||||
|
|
||||||
op.#Exec & {
|
op.#Exec & {
|
||||||
always: true
|
always: true
|
||||||
mount: "/var/run/docker.sock": stream: context.services.dockerSocket.service
|
mount: "/var/run/docker.sock": stream: proxy.dockerSocket.service
|
||||||
args: ["docker", "info"]
|
args: ["docker", "info"]
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user