feat: add support for checking if an application exists

This is useful for creating review applications in CI/CD pipelines.
This commit is contained in:
Jose Diaz-Gonzalez
2018-02-28 02:27:29 -05:00
parent 86a0ae1dde
commit 399073f77b
4 changed files with 54 additions and 0 deletions

View File

@@ -132,3 +132,22 @@ teardown () {
echo "status: "$status
assert_success
}
@test "(apps) apps:exists" {
run dokku apps:exists $TEST_APP
echo "output: "$output
echo "status: "$status
assert_failure
create_app
run dokku apps:exists $TEST_APP
echo "output: "$output
echo "status: "$status
assert_success
run bash -c "dokku --force apps:destroy $TEST_APP"
echo "output: "$output
echo "status: "$status
assert_success
}