refactored test to use #ReadFile
Signed-off-by: Richard Jones <richard@dagger.io>
This commit is contained in:
parent
d43bc7dc53
commit
f50311de35
@ -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"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
1
tests/plan/inputs/directories/test.txt
Normal file
1
tests/plan/inputs/directories/test.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
local directory
|
Reference in New Issue
Block a user