Smaller, cleaner test

Signed-off-by: Joel Longtine <joel@dagger.io>
This commit is contained in:
Joel Longtine 2022-01-07 16:41:36 -07:00
parent 4d4fbb20b5
commit a184fe6fce

View File

@ -6,18 +6,10 @@ import (
engine.#Plan & { engine.#Plan & {
actions: { actions: {
write: engine.#WriteFile & {
input: engine.#Scratch
path: "/.dockerignore"
contents: "Dockerfile"
permissions: 700
}
build: engine.#Build & { build: engine.#Build & {
source: write.output source: engine.#Scratch
dockerfile: contents: """ dockerfile: contents: "FROM scratch"
FROM scratch
"""
// Assert that output is engine.#Scratch // Assert that output is engine.#Scratch
output: engine.#Scratch output: engine.#Scratch
} }