tests: add tests for scaling without restarting untouched process types
This commit is contained in:
1 file changed
+15
@@ -171,3 +171,18 @@ teardown() {
|
|||||||
assert_success
|
assert_success
|
||||||
done
|
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