Files
morten-olsen.github.io/cue.mod/pkg/universe.dagger.io/netlify/test/testutils/testutils.cue
Morten Olsen cc7b7c6849 update
2022-04-03 22:15:45 +02:00

27 lines
378 B
CUE
Executable File
Generated

package testutils
import (
"universe.dagger.io/bash"
"universe.dagger.io/alpine"
)
// Assert the text contents available at a URL
#AssertURL: {
url: string
contents: string
run: bash.#Run & {
input: image.output
script: "contents": """
test "$(curl \(url))" = "\(contents)"
"""
}
image: alpine.#Build & {
packages: {
bash: {}
curl: {}
}
}
}