From 0642e34388a3bec576a77a244962a8dc1941cc73 Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Mon, 7 Mar 2022 11:43:01 -0800 Subject: [PATCH] tests: fix inputs directories test Signed-off-by: Andrea Luzzardi --- tests/plan/inputs/directories/main.cue | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/tests/plan/inputs/directories/main.cue b/tests/plan/inputs/directories/main.cue index ce485da4..f6e22e76 100644 --- a/tests/plan/inputs/directories/main.cue +++ b/tests/plan/inputs/directories/main.cue @@ -8,23 +8,24 @@ dagger.#Plan & { inputs: directories: test: path: string actions: { - _readFile: dagger.#ReadFile & { - input: inputs.directories.test.contents - path: "test.txt" - } - // Test that file exists and contains correct content - exists: _readFile & { + exists: dagger.#ReadFile & { + input: inputs.directories.test.contents + path: "test.txt" contents: "local directory" } // Test that file does NOT exist - notExists: _readFile & { + notExists: dagger.#ReadFile & { + input: inputs.directories.test.contents + path: "test.txt" contents: "local directory" } // Test that file exists and contains conflicting content - conflictingValues: _readFile & { + conflictingValues: dagger.#ReadFile & { + input: inputs.directories.test.contents + path: "test.txt" contents: "local dfsadf" } }