refactored test to use CUE validations rather than container stdout
Signed-off-by: Richard Jones <richard@dagger.io>
This commit is contained in:
parent
69ee3750b8
commit
026c7641b3
@ -7,5 +7,4 @@ setup() {
|
||||
@test "plan: hello" {
|
||||
run dagger --no-cache --europa up ./plan/hello-europa
|
||||
assert_success
|
||||
assert_output --partial 'Hello Europa!'
|
||||
}
|
@ -6,7 +6,11 @@ import (
|
||||
)
|
||||
|
||||
engine.#Plan & {
|
||||
actions: sayHello: os.#Container & {
|
||||
command: "echo Hello Europa!"
|
||||
actions: {
|
||||
sayHello: os.#Container & {
|
||||
command: "echo Hello Europa! > /out.txt"
|
||||
}
|
||||
|
||||
verify: "Hello Europa!\n" & (os.#File & {from: sayHello, path: "/out.txt"}).contents
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user