mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
tests: add tests for scaling without restarting untouched process types
This commit is contained in:
@@ -171,3 +171,18 @@ teardown() {
|
||||
assert_success
|
||||
done
|
||||
}
|
||||
|
||||
@test "(ps:scale) dockerfile unchanged process" {
|
||||
run deploy_app dockerfile
|
||||
echo "output: $output"
|
||||
echo "status: $status"
|
||||
assert_success
|
||||
|
||||
run /bin/bash -c "dokku ps:scale $TEST_APP worker=2"
|
||||
echo "output: $output"
|
||||
echo "status: $status"
|
||||
assert_output_contains "Scaling $TEST_APP processes: worker=2"
|
||||
assert_output_contains "Deploying worker"
|
||||
assert_output_contains "Deploying web" 0
|
||||
assert_success
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user