more tests
Signed-off-by: Richard Jones <richard@dagger.io>
This commit is contained in:
parent
6848755a42
commit
1384b025b7
@ -97,4 +97,12 @@ setup() {
|
|||||||
cd "$TESTDIR"/tasks/gitPull/
|
cd "$TESTDIR"/tasks/gitPull/
|
||||||
"$DAGGER" --europa up ./exists.cue
|
"$DAGGER" --europa up ./exists.cue
|
||||||
"$DAGGER" --europa up ./gitdir.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
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
10
tests/tasks/gitPull/badref.cue
Normal file
10
tests/tasks/gitPull/badref.cue
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
10
tests/tasks/gitPull/badremote.cue
Normal file
10
tests/tasks/gitPull/badremote.cue
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
7
tests/tasks/gitPull/invalid.cue
Normal file
7
tests/tasks/gitPull/invalid.cue
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import "alpha.dagger.io/europa/dagger/engine"
|
||||||
|
|
||||||
|
engine.#Plan & {
|
||||||
|
actions: invalid: engine.#GitPull & {}
|
||||||
|
}
|
Reference in New Issue
Block a user