test(webhook): integration smoke for async webhook traceparent continuity

This commit is contained in:
Julien Neuhart
2026-06-02 18:56:06 +02:00
parent 8003109012
commit f5b26c0b2c
2 changed files with 38 additions and 0 deletions

View File

@@ -126,3 +126,15 @@ Feature: Webhook
"timestamp": "ignore"
}
"""
Scenario: Asynchronous Trace Continuity
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 |
| traceparent | 00-0af7651916cd43dd8448eb211c80319c-b7ad6b7169203331-01 | header |
Then the response status code should be 204
When I wait for the asynchronous request to the webhook
Then the webhook request header "traceparent" should carry trace id "0af7651916cd43dd8448eb211c80319c"