added test

Signed-off-by: Richard Jones <richard@dagger.io>
This commit is contained in:
Richard Jones 2021-12-08 16:24:16 -07:00
parent 83b10d4031
commit 28cebb1bf0
No known key found for this signature in database
GPG Key ID: CFB3A382EB166F4C
2 changed files with 25 additions and 0 deletions

11
tests/plan.bats Normal file
View File

@ -0,0 +1,11 @@
setup() {
load 'helpers'
common_setup
}
@test "plan: hello" {
run dagger --no-cache --europa up ./plan/hello-europa
assert_success
assert_output --partial 'Hello Europa!'
}

View File

@ -0,0 +1,14 @@
package main
import (
"alpha.dagger.io/dagger/engine"
"alpha.dagger.io/os"
)
engine.#Plan & {
actions: {
sayHello: os.#Container & {
command: "echo Hello Europa!"
}
}
}