tests: add test to prove Dokku respects the Procfile when deploying from an image

Any subsequent ps:rebuild should always respect the image for fetching files. This test proves this works.

Closes #7375
This commit is contained in:
Jose Diaz-Gonzalez
2025-03-09 09:38:25 -04:00
parent c7f35eb8a2
commit 77cfa63196
3 changed files with 13 additions and 2 deletions

View File

@@ -94,3 +94,15 @@ EOF
echo "status: $status"
assert_output "3001/udp 3000/tcp 3003"
}
@test "(builder-dockerfile) ps:rebuild fetches files from image" {
run /bin/bash -c "dokku --trace git:from-image $TEST_APP dokku/smoke-test-app:dockerfile"
echo "output: $output"
echo "status: $status"
assert_success
run /bin/bash -c "dokku ps:rebuild $TEST_APP"
echo "output: $output"
echo "status: $status"
assert_success
}