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

View File

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

View File

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

View File

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

View File

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

View File

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