From 66eff6f15e126eb2fe46463bf1717e65abfa7429 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 25 Oct 2025 07:29:12 -0400 Subject: [PATCH] test: add test for release command --- tests/unit/ps-general-1.bats | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/unit/ps-general-1.bats b/tests/unit/ps-general-1.bats index 05aff2709..661d56395 100644 --- a/tests/unit/ps-general-1.bats +++ b/tests/unit/ps-general-1.bats @@ -98,7 +98,14 @@ teardown() { cat <"$DOKKU_LIB_ROOT/data/ps/$TEST_APP/Procfile" web: node web.js --port \$PORT worker: node worker.js +release: interpolated $ENV_VAR EOF + + run /bin/bash -c "dokku config:set '$TEST_APP' ENV_VAR=value" + echo "output: $output" + echo "status: $status" + assert_success + run /bin/bash -c "dokku plugin:trigger procfile-get-command '$TEST_APP' web 5001" echo "output: $output" echo "status: $status" @@ -108,6 +115,11 @@ EOF echo "output: $output" echo "status: $status" assert_output "node worker.js" + + run /bin/bash -c "dokku plugin:trigger procfile-get-command '$TEST_APP' release 5001" + echo "output: $output" + echo "status: $status" + assert_output "interpolated value" } @test "(ps:scale) update formations from Procfile" {