more tests

Signed-off-by: Richard Jones <richard@dagger.io>
This commit is contained in:
Richard Jones 2021-12-20 14:08:05 -07:00
parent 6848755a42
commit 1384b025b7
No known key found for this signature in database
GPG Key ID: CFB3A382EB166F4C
4 changed files with 35 additions and 0 deletions

View File

@ -97,4 +97,12 @@ setup() {
cd "$TESTDIR"/tasks/gitPull/
"$DAGGER" --europa up ./exists.cue
"$DAGGER" --europa up ./gitdir.cue
run "$DAGGER" --europa up ./invalid.cue
assert_failure
run "$DAGGER" --europa up ./badremote.cue
assert_failure
run "$DAGGER" --europa up ./badref.cue
assert_failure
}

View File

@ -0,0 +1,10 @@
package main
import "alpha.dagger.io/europa/dagger/engine"
engine.#Plan & {
actions: badref: engine.#GitPull & {
remote: "https://github.com/blocklayerhq/acme-clothing.git"
ref: "lalalalal"
}
}

View File

@ -0,0 +1,10 @@
package main
import "alpha.dagger.io/europa/dagger/engine"
engine.#Plan & {
actions: badremote: engine.#GitPull & {
remote: "https://github.com/blocklayerhq/lalalala.git"
ref: "master"
}
}

View File

@ -0,0 +1,7 @@
package main
import "alpha.dagger.io/europa/dagger/engine"
engine.#Plan & {
actions: invalid: engine.#GitPull & {}
}