Adds support for op.#FetchHTTP
Signed-off-by: Edgar Lee <edgarhinshunlee@gmail.com>
This commit is contained in:
@@ -113,6 +113,14 @@ setup() {
|
||||
# assert_failure
|
||||
}
|
||||
|
||||
@test "op.#FetchHTTP" {
|
||||
run "$DAGGER" compute "$TESTDIR"/ops/fetch-http/exist
|
||||
assert_success
|
||||
|
||||
run "$DAGGER" compute "$TESTDIR"/ops/fetch-http/nonexistent
|
||||
assert_failure
|
||||
}
|
||||
|
||||
@test "op.#Exec" {
|
||||
run "$DAGGER" compute "$TESTDIR"/ops/exec/invalid
|
||||
assert_failure
|
||||
|
9
tests/ops/fetch-http/exist/main.cue
Normal file
9
tests/ops/fetch-http/exist/main.cue
Normal file
@@ -0,0 +1,9 @@
|
||||
package testing
|
||||
|
||||
import "alpha.dagger.io/dagger/op"
|
||||
|
||||
#up: [
|
||||
op.#FetchHTTP & {
|
||||
url: "https://releases.dagger.io/dagger/latest_version"
|
||||
},
|
||||
]
|
9
tests/ops/fetch-http/nonexistent/main.cue
Normal file
9
tests/ops/fetch-http/nonexistent/main.cue
Normal file
@@ -0,0 +1,9 @@
|
||||
package testing
|
||||
|
||||
import "alpha.dagger.io/dagger/op"
|
||||
|
||||
#up: [
|
||||
op.#FetchHTTP & {
|
||||
url: "https://releases.dagger.io/dagger/nonexistent_version"
|
||||
},
|
||||
]
|
Reference in New Issue
Block a user