feat: verify that a process exists before scaling it

Refs #2582
Refs #3196
This commit is contained in:
Jose Diaz-Gonzalez
2018-07-29 14:01:01 -04:00
parent b6fe31f9cb
commit afd101034d
2 changed files with 15 additions and 1 deletions

View File

@@ -70,6 +70,13 @@ teardown() {
done
}
@test "(ps:scale) dockerfile" {
run bash -c "dokku ps:scale $TEST_APP non-existent=2"
echo "output: "$output
echo "status: "$status
assert_failure
}
@test "(ps:scale) dockerfile" {
run bash -c "dokku ps:scale $TEST_APP web=2"
echo "output: "$output