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.
Files
dagger/docs/learn/tests/doc.bats
Guillaume de Rouville ad2f9b3f17 1003 test implementation
Signed-off-by: Guillaume de Rouville <guillaume.derouville@gmail.com>
2021-09-01 11:12:41 +02:00

29 lines
542 B
Bash

## Doc commands are being extracted from this file and helpers.
## Indentation is important, please append at the end
setup() {
load 'helpers'
common_setup
}
# Test 1003-get-started
@test "doc-1003-get-started" {
setup_example_sandbox "doc"
# Set examples private key
./import-tutorial-key.sh
# Collect url
dagger up
url=$(dagger query -f text url)
# More commands
dagger list
ls -l ./s3
dagger input list
# Check output
run curl $url
assert_output --partial "My Todo app"
}