fix: use plugin:trigger command to test the procfile-get-command trigger

This commit is contained in:
Jose Diaz-Gonzalez committed 2025-10-25 07:25:54 -04:00
1 parent 9d711cbb44
commit c7c22d8392
1 file changed
+2 -2
+2 -2
View File
@@ -99,12 +99,12 @@ teardown() {
web: node web.js --port \$PORT web: node web.js --port \$PORT
worker: node worker.js worker: node worker.js
EOF EOF
PLUGIN_PATH=/var/lib/dokku/plugins PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available DOKKU_LIB_ROOT=/var/lib/dokku run plugn trigger procfile-get-command "$TEST_APP" web 5001 run /bin/bash -c "dokku plugin:trigger procfile-get-command '$TEST_APP' web 5001"
echo "output: $output" echo "output: $output"
echo "status: $status" echo "status: $status"
assert_output "node web.js --port 5001" assert_output "node web.js --port 5001"
PLUGIN_PATH=/var/lib/dokku/plugins PLUGIN_CORE_AVAILABLE_PATH=/var/lib/dokku/core-plugins/available DOKKU_LIB_ROOT=/var/lib/dokku run plugn trigger procfile-get-command "$TEST_APP" worker run /bin/bash -c "dokku plugin:trigger procfile-get-command '$TEST_APP' worker"
echo "output: $output" echo "output: $output"
echo "status: $status" echo "status: $status"
assert_output "node worker.js" assert_output "node worker.js"