1003 test implementation

Signed-off-by: Guillaume de Rouville <guillaume.derouville@gmail.com>
This commit is contained in:
Guillaume de Rouville
2021-08-12 12:47:50 +02:00
parent 6f0a0b4e0f
commit ad2f9b3f17
6 changed files with 138 additions and 0 deletions

29
docs/learn/tests/doc.bats Normal file
View File

@@ -0,0 +1,29 @@
## 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"
}