This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/tests/plan.bats
Richard Jones 94ed741320 cleanup container after test
Signed-off-by: Richard Jones <richard@dagger.io>
2021-12-15 10:22:38 -07:00

19 lines
458 B
Bash

setup() {
load 'helpers'
common_setup
}
@test "plan: hello" {
# Europa loader handles the cwd differently, therefore we need to CD into the tree at or below the parent of cue.mod
cd "$TESTDIR"
"$DAGGER" --europa up ./plan/hello-europa
}
@test "plan: unix socket" {
cd "$TESTDIR"
"$DAGGER" --europa up ./plan/hello-europa
run curl http://localhost:8080
assert_output --partial "<title>Hello World</title>"
docker rm -f nginx-hello
}