fix: correct tests by moving to correct file
This commit is contained in:
@@ -53,6 +53,19 @@ teardown () {
|
|||||||
destroy_app
|
destroy_app
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@test "(apps) app autocreate disabled" {
|
||||||
|
run dokku config:set --no-restart --global DOKKU_DISABLE_APP_AUTOCREATION='true'
|
||||||
|
echo "output: "$output
|
||||||
|
echo "status: "$status
|
||||||
|
assert_success
|
||||||
|
|
||||||
|
run deploy_app
|
||||||
|
echo "output: "$output
|
||||||
|
echo "status: "$status
|
||||||
|
assert_failure
|
||||||
|
run dokku config:unset --no-restart --global DOKKU_DISABLE_APP_AUTOCREATION
|
||||||
|
}
|
||||||
|
|
||||||
@test "(apps) apps:destroy" {
|
@test "(apps) apps:destroy" {
|
||||||
create_app
|
create_app
|
||||||
run bash -c "dokku --force apps:destroy $TEST_APP"
|
run bash -c "dokku --force apps:destroy $TEST_APP"
|
||||||
|
|||||||
@@ -70,16 +70,3 @@ teardown() {
|
|||||||
echo "status: "$status
|
echo "status: "$status
|
||||||
assert_output "herokuish"
|
assert_output "herokuish"
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "(build-env) app autocreate disabled" {
|
|
||||||
run dokku config:set --no-restart --global DOKKU_DISABLE_APP_AUTOCREATION='true'
|
|
||||||
echo "output: "$output
|
|
||||||
echo "status: "$status
|
|
||||||
assert_success
|
|
||||||
|
|
||||||
run deploy_app
|
|
||||||
echo "output: "$output
|
|
||||||
echo "status: "$status
|
|
||||||
assert_failure
|
|
||||||
run dokku config:unset --no-restart --global DOKKU_DISABLE_APP_AUTOCREATION
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user