- Specify how long to wait before running first check - Specify timeout for each check - Check specific hosts, e.g. http://signin.example.com - Check both HTTP and HTTPS resources
27 lines
447 B
Bash
Executable File
27 lines
447 B
Bash
Executable File
#!/usr/bin/env bats
|
|
|
|
load test_helper
|
|
|
|
APP=lifecycle-app
|
|
|
|
@test "apps:create" {
|
|
run dokku apps:create $APP
|
|
echo "output: "$output
|
|
echo "status: "$status
|
|
assert_success
|
|
}
|
|
|
|
@test "apps" {
|
|
run bash -c "dokku apps | grep $APP"
|
|
echo "output: "$output
|
|
echo "status: "$status
|
|
assert_output $APP
|
|
}
|
|
|
|
@test "apps:destroy" {
|
|
run bash -c "dokku --force apps:destroy $APP"
|
|
echo "output: "$output
|
|
echo "status: "$status
|
|
assert_success
|
|
}
|