tests: fix inputs directories test
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
parent
6b4674af9f
commit
0642e34388
@ -8,23 +8,24 @@ dagger.#Plan & {
|
|||||||
inputs: directories: test: path: string
|
inputs: directories: test: path: string
|
||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
_readFile: dagger.#ReadFile & {
|
|
||||||
input: inputs.directories.test.contents
|
|
||||||
path: "test.txt"
|
|
||||||
}
|
|
||||||
|
|
||||||
// Test that file exists and contains correct content
|
// Test that file exists and contains correct content
|
||||||
exists: _readFile & {
|
exists: dagger.#ReadFile & {
|
||||||
|
input: inputs.directories.test.contents
|
||||||
|
path: "test.txt"
|
||||||
contents: "local directory"
|
contents: "local directory"
|
||||||
}
|
}
|
||||||
|
|
||||||
// Test that file does NOT exist
|
// Test that file does NOT exist
|
||||||
notExists: _readFile & {
|
notExists: dagger.#ReadFile & {
|
||||||
|
input: inputs.directories.test.contents
|
||||||
|
path: "test.txt"
|
||||||
contents: "local directory"
|
contents: "local directory"
|
||||||
}
|
}
|
||||||
|
|
||||||
// Test that file exists and contains conflicting content
|
// Test that file exists and contains conflicting content
|
||||||
conflictingValues: _readFile & {
|
conflictingValues: dagger.#ReadFile & {
|
||||||
|
input: inputs.directories.test.contents
|
||||||
|
path: "test.txt"
|
||||||
contents: "local dfsadf"
|
contents: "local dfsadf"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user