@@ -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"
|
||||
|
Reference in New Issue
Block a user