mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-07-02 08:27:41 +08:00
feat(webhook) add support for sync upload with webhook url (#1233)
* Add support for having sync upload with webhook url * Update tests * Make SendOutputFileParams interface private * Make interface params private
This commit is contained in:
@@ -31,3 +31,15 @@ Feature: Webhook
|
||||
# https://github.com/gotenberg/gotenberg/issues/1165
|
||||
Then the webhook request header "Content-Disposition" should be "inline"
|
||||
Then there should be 1 PDF(s) in the webhook request
|
||||
|
||||
Scenario: Synchronous webhook processing with Gotenberg-Webhook-Sync header
|
||||
Given I have a default Gotenberg container
|
||||
Given I have a webhook server
|
||||
When I make a "POST" request to Gotenberg at the "/forms/pdfengines/flatten" endpoint with the following form data and header(s):
|
||||
| files | testdata/page_1.pdf | file |
|
||||
| Gotenberg-Webhook-Url | http://host.docker.internal:%d/webhook | header |
|
||||
| Gotenberg-Webhook-Error-Url | http://host.docker.internal:%d/webhook/error | header |
|
||||
| Gotenberg-Webhook-Sync | true | header |
|
||||
Then the response status code should be 204
|
||||
Then the webhook request header "Content-Type" should be "application/pdf"
|
||||
Then there should be 1 PDF(s) in the webhook request
|
||||
|
||||
Reference in New Issue
Block a user