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.
This commit is contained in:
Jose Diaz-Gonzalez committed 2026-05-09 16:06:27 -04:00
1 parent dbac12e9f1
commit 4f4fed7101
1 file changed
+2 -2
+2 -2
View File
@@ -176,7 +176,7 @@ teardown() {
echo "output: $output" echo "output: $output"
echo "status: $status" echo "status: $status"
assert_success 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" run /bin/bash -c "dokku apps:rename $TEST_APP great-test-name"
echo "output: $output" echo "output: $output"
echo "status: $status" echo "status: $status"
@@ -185,7 +185,7 @@ teardown() {
echo "output: $output" echo "output: $output"
echo "status: $status" echo "status: $status"
assert_success 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" run /bin/bash -c "dokku apps:list | grep $TEST_APP"
echo "output: $output" echo "output: $output"
echo "status: $status" echo "status: $status"