1e1b28e1de
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
18 lines
467 B
Bash
18 lines
467 B
Bash
setup() {
|
|
load 'helpers'
|
|
|
|
common_setup
|
|
}
|
|
|
|
@test "example: react" {
|
|
cp -R "$TESTDIR"/examples/react/.dagger "$DAGGER_WORKSPACE"/.dagger
|
|
cp -R "$TESTDIR"/../examples/react/*.cue "$DAGGER_WORKSPACE"/.dagger/env/default/plan
|
|
|
|
"$DAGGER" up
|
|
|
|
# curl the URL we just deployed to check if it worked
|
|
deployUrl=$("$DAGGER" query -l error -f text www.deployUrl)
|
|
run curl -sS "$deployUrl"
|
|
assert_success
|
|
assert_output --partial "Todo App"
|
|
} |