From f50311de351807ea589b4c7bf746629b3ce14a37 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Thu, 16 Dec 2021 14:10:50 -0700 Subject: [PATCH] refactored test to use #ReadFile Signed-off-by: Richard Jones --- tests/plan/inputs/directories/exists.cue | 8 +++++++- tests/plan/inputs/directories/test.txt | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 tests/plan/inputs/directories/test.txt diff --git a/tests/plan/inputs/directories/exists.cue b/tests/plan/inputs/directories/exists.cue index 9d66e4ef..24b7e2c8 100644 --- a/tests/plan/inputs/directories/exists.cue +++ b/tests/plan/inputs/directories/exists.cue @@ -2,9 +2,15 @@ package main import ( "alpha.dagger.io/europa/dagger" + "alpha.dagger.io/europa/dagger/engine" ) dagger.#Plan & { 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" + } } diff --git a/tests/plan/inputs/directories/test.txt b/tests/plan/inputs/directories/test.txt new file mode 100644 index 00000000..85b0daa3 --- /dev/null +++ b/tests/plan/inputs/directories/test.txt @@ -0,0 +1 @@ +local directory \ No newline at end of file