From 28cebb1bf03295fbe680f6105531686d054a4bd3 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Wed, 8 Dec 2021 16:24:16 -0700 Subject: [PATCH] added test Signed-off-by: Richard Jones --- tests/plan.bats | 11 +++++++++++ tests/plan/hello-europa/main.cue | 14 ++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 tests/plan.bats create mode 100644 tests/plan/hello-europa/main.cue diff --git a/tests/plan.bats b/tests/plan.bats new file mode 100644 index 00000000..71810688 --- /dev/null +++ b/tests/plan.bats @@ -0,0 +1,11 @@ +setup() { + load 'helpers' + + common_setup +} + +@test "plan: hello" { + run dagger --no-cache --europa up ./plan/hello-europa + assert_success + assert_output --partial 'Hello Europa!' +} \ No newline at end of file diff --git a/tests/plan/hello-europa/main.cue b/tests/plan/hello-europa/main.cue new file mode 100644 index 00000000..615590a7 --- /dev/null +++ b/tests/plan/hello-europa/main.cue @@ -0,0 +1,14 @@ +package main + +import ( + "alpha.dagger.io/dagger/engine" + "alpha.dagger.io/os" +) + +engine.#Plan & { + actions: { + sayHello: os.#Container & { + command: "echo Hello Europa!" + } + } +} \ No newline at end of file