add ps:restart-policy tests

This commit is contained in:
Michael Hobbs
2016-07-17 15:56:55 -07:00
parent 81f444c807
commit 9d387fd666
2 changed files with 72 additions and 17 deletions

View File

@@ -224,20 +224,3 @@ teardown() {
done
}
@test "(ps:scale) procfile commands extraction" {
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
source "$PLUGIN_CORE_AVAILABLE_PATH/ps/functions"
cat <<EOF > "$DOKKU_ROOT/$TEST_APP/DOKKU_PROCFILE"
web: node web.js
worker: node worker.js
EOF
run get_cmd_from_procfile "$TEST_APP" web
echo "output: "$output
echo "status: "$status
assert_output "node web.js"
run get_cmd_from_procfile "$TEST_APP" worker
echo "output: "$output
echo "status: "$status
assert_output "node worker.js"
}