From 4f4fed710117f83d6064015b81d622f6782ffc6a Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 9 May 2026 16:06:27 -0400 Subject: [PATCH] test: update apps:rename assertions for quoted git-hook app name The security fix that quoted `$APP` inside the pre-receive hook heredoc changed the literal hook contents from `dokku git-hook foo` to `dokku git-hook "foo"`, so the existing substring assertions no longer match. --- tests/unit/apps_1.bats | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/apps_1.bats b/tests/unit/apps_1.bats index 6746c9d3a..e1dbab0c0 100644 --- a/tests/unit/apps_1.bats +++ b/tests/unit/apps_1.bats @@ -176,7 +176,7 @@ teardown() { echo "output: $output" echo "status: $status" assert_success - assert_output_contains "git-hook $TEST_APP" + assert_output_contains "git-hook \"$TEST_APP\"" run /bin/bash -c "dokku apps:rename $TEST_APP great-test-name" echo "output: $output" echo "status: $status" @@ -185,7 +185,7 @@ teardown() { echo "output: $output" echo "status: $status" assert_success - assert_output_contains "git-hook great-test-name" + assert_output_contains "git-hook \"great-test-name\"" run /bin/bash -c "dokku apps:list | grep $TEST_APP" echo "output: $output" echo "status: $status"