refactored test to use CUE validations rather than container stdout

Signed-off-by: Richard Jones <richard@dagger.io>
This commit is contained in:
Richard Jones 2021-12-09 11:30:15 -07:00
parent 69ee3750b8
commit 026c7641b3
No known key found for this signature in database
GPG Key ID: CFB3A382EB166F4C
2 changed files with 6 additions and 3 deletions

View File

@ -7,5 +7,4 @@ setup() {
@test "plan: hello" { @test "plan: hello" {
run dagger --no-cache --europa up ./plan/hello-europa run dagger --no-cache --europa up ./plan/hello-europa
assert_success assert_success
assert_output --partial 'Hello Europa!'
} }

View File

@ -6,7 +6,11 @@ import (
) )
engine.#Plan & { engine.#Plan & {
actions: sayHello: os.#Container & { actions: {
command: "echo Hello Europa!" sayHello: os.#Container & {
command: "echo Hello Europa! > /out.txt"
}
verify: "Hello Europa!\n" & (os.#File & {from: sayHello, path: "/out.txt"}).contents
} }
} }