refactor: remove support for DOKKU_SCALE file

It has been replaced by the 'formations' key within the 'app.json' file format.
This commit is contained in:
Jose Diaz-Gonzalez
2023-01-15 23:53:03 -05:00
parent e22d74febb
commit 5dcc1cb13c
18 changed files with 29 additions and 91 deletions

View File

@@ -1,2 +0,0 @@
# test comment
web=1

View File

@@ -0,0 +1,7 @@
{
"formation": {
"web": {
"quantity": 1
}
}
}

View File

@@ -0,0 +1,7 @@
{
"formation": {
"web": {
"quantity": 1
}
}
}

View File

@@ -1 +0,0 @@
web=1

View File

@@ -1,2 +0,0 @@
web=0
worker=1

View File

@@ -0,0 +1,10 @@
{
"formation": {
"web": {
"quantity": 0
},
"worker": {
"quantity": 1
}
}
}

View File

@@ -12,13 +12,13 @@ teardown() {
global_teardown
}
@test "(ps:scale) dockerfile dokku-scale" {
@test "(ps:scale) dockerfile app-json formations" {
run /bin/bash -c "dokku ps:scale $TEST_APP web=2"
echo "output: $output"
echo "status: $status"
assert_success
deploy_app dockerfile-dokku-scale
deploy_app dockerfile-app-json-formations
CIDS=""
for CID_FILE in $DOKKU_ROOT/$TEST_APP/CONTAINER.web.*; do
CIDS+=$(<$CID_FILE)