refactored test to use #ReadFile

Signed-off-by: Richard Jones <richard@dagger.io>
This commit is contained in:
Richard Jones 2021-12-16 14:10:50 -07:00
parent d43bc7dc53
commit f50311de35
No known key found for this signature in database
GPG Key ID: CFB3A382EB166F4C
2 changed files with 8 additions and 1 deletions

View File

@ -2,9 +2,15 @@ package main
import ( import (
"alpha.dagger.io/europa/dagger" "alpha.dagger.io/europa/dagger"
"alpha.dagger.io/europa/dagger/engine"
) )
dagger.#Plan & { dagger.#Plan & {
input: directories: test: path: "./plan/inputs/directories" input: directories: test: path: "./plan/inputs/directories"
actions: verify: input.directories.test.contents actions: verify: engine.#ReadFile & {
input: input.directories.test.contents
path: "test.txt"
} & {
contents: "local directory\n"
}
} }

View File

@ -0,0 +1 @@
local directory