add test for ps:restore with undeployed app. refs #2171

This commit is contained in:
Michael Hobbs
2016-05-10 09:30:55 -07:00
parent 99030a110c
commit 7de160b64d
2 changed files with 44 additions and 10 deletions

View File

@@ -113,11 +113,13 @@ assert_exit_status() {
# dokku functions
create_app() {
local APP="$1"; local TEST_APP=${APP:=$TEST_APP}
dokku apps:create "$TEST_APP"
}
destroy_app() {
local RC="$1"; local RC=${RC:=0}
local APP="$2"; local TEST_APP=${APP:=$TEST_APP}
dokku --force apps:destroy "$TEST_APP"
return "$RC"
}