Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
This commit is contained in:
Vasek - Tom C
2022-02-11 17:31:36 +01:00
parent 73829fd9a7
commit ce4c1f036f
5 changed files with 44 additions and 28 deletions

View File

@@ -32,17 +32,16 @@ dagger.#Plan & {
}
// Test: export a file
exportFile: docker.#Run & {
input: _image
command: {
name: "sh"
flags: "-c": #"""
echo -n hello world >> /output.txt
"""#
}
export: files: "/output.txt": _ & {
// Assert content
contents: "hello world"
exportFile: {
run: docker.#Run & {
input: _image
command: {
name: "sh"
flags: "-c": #"""
echo -n hello world >> /output.txt
"""#
}
export: files: "/output.txt": string & "hello world"
}
}
@@ -61,7 +60,7 @@ dagger.#Plan & {
}
verify: dagger.#ReadFile & {
input: run.export.directories."/test".contents
input: run.export.directories."/test"
path: "/output.txt"
}
verify: contents: "hello world"