feat: add test for old app during apps:clone --skip-deploy

If you skip a deploy and then destroy the newly created app, the old application should continue functioning like normal.
This commit is contained in:
Jose Diaz-Gonzalez
2018-12-27 05:06:21 -05:00
parent f3a33e74d7
commit a9d46ada5d

8
tests/unit/10_apps.bats Normal file → Executable file
View File

@@ -152,6 +152,10 @@ teardown () {
echo "output: $output"
echo "status: $status"
assert_success
run /bin/bash -c "curl --silent --write-out '%{http_code}\n' `dokku url $TEST_APP` | grep 200"
echo "output: $output"
echo "status: $status"
assert_success
run /bin/bash -c "curl --silent --write-out '%{http_code}\n' `dokku url great-test-name` | grep 404"
echo "output: $output"
echo "status: $status"
@@ -160,6 +164,10 @@ teardown () {
echo "output: $output"
echo "status: $status"
assert_success
run /bin/bash -c "curl --silent --write-out '%{http_code}\n' `dokku url $TEST_APP` | grep 200"
echo "output: $output"
echo "status: $status"
assert_success
}
@test "(apps) apps:clone --ignore-existing" {