refactored tests to account for lib reorg

Signed-off-by: Richard Jones <richard@dagger.io>
This commit is contained in:
Richard Jones 2021-12-16 12:29:40 -07:00
parent 4768425037
commit 0ed6327344
No known key found for this signature in database
GPG Key ID: CFB3A382EB166F4C
6 changed files with 14 additions and 14 deletions

View File

@ -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"

View File

@ -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"]
},
]

View File

@ -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"]
},
]

View File

@ -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"]
},
]

View File

@ -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"]
},
]

View File

@ -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"]
},
]