diff --git a/tests/plan.bats b/tests/plan.bats index f99567ef..222dc085 100644 --- a/tests/plan.bats +++ b/tests/plan.bats @@ -10,31 +10,36 @@ setup() { "$DAGGER" --europa up ./plan/hello-europa } -@test "plan/context/services invalid schema" { +@test "plan/proxy invalid schema" { cd "$TESTDIR" - run "$DAGGER" --europa up ./plan/context/services/invalid_schema.cue + run "$DAGGER" --europa up ./plan/proxy/invalid_schema.cue assert_failure } -@test "plan/context/services invalid value" { +@test "plan/proxy invalid value" { cd "$TESTDIR" - run "$DAGGER" --europa up ./plan/context/services/invalid_value.cue + run "$DAGGER" --europa up ./plan/proxy/invalid_value.cue assert_failure } -@test "plan/context/services incomplete unix" { +@test "plan/proxy incomplete unix" { cd "$TESTDIR" - run "$DAGGER" --europa up ./plan/context/services/incomplete_unix.cue + run "$DAGGER" --europa up ./plan/proxy/incomplete_unix.cue assert_failure } -@test "plan/context/services incomplete service" { +@test "plan/proxy incomplete service" { cd "$TESTDIR" - run "$DAGGER" --europa up ./plan/context/services/incomplete_service.cue + run "$DAGGER" --europa up ./plan/proxy/incomplete_service.cue assert_output --partial "pipeline was partially executed because of missing inputs" } -@test "plan/context/services unix" { +@test "plan/proxy unix" { cd "$TESTDIR" - "$DAGGER" --europa up ./plan/context/services/unix.cue + "$DAGGER" --europa up ./plan/proxy/unix.cue +} + +@test "plan/inputs/directories exists" { + cd "$TESTDIR" + "$DAGGER" --europa up ./plan/inputs/directories/exists.cue } \ No newline at end of file diff --git a/tests/plan/inputs/directories/exists.cue b/tests/plan/inputs/directories/exists.cue new file mode 100644 index 00000000..9d66e4ef --- /dev/null +++ b/tests/plan/inputs/directories/exists.cue @@ -0,0 +1,10 @@ +package main + +import ( + "alpha.dagger.io/europa/dagger" +) + +dagger.#Plan & { + input: directories: test: path: "./plan/inputs/directories" + actions: verify: input.directories.test.contents +}