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/examples.bats
Andrea Luzzardi fb2e140b91 tests: convert react example test to bats
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-14 17:19:53 -07:00

17 lines
401 B
Bash

setup() {
load 'helpers'
common_setup
}
@test "example: react" {
skip_unless_secrets_available "$TESTDIR"/examples/react/inputs.yaml
run "$DAGGER" compute -l fatal "$TESTDIR"/../examples/react --input-yaml "$TESTDIR"/examples/react/inputs.yaml
assert_success
url=$(echo "$output" | jq -r .www.deployUrl)
run curl -sS "$url"
assert_success
assert_output --partial "Todo App"
}