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:
1 file changed
+2
-2
@@ -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"
|
||||||
|
|||||||
Reference in new issue
Block a user