mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-14 19:32:15 +01:00
refactor(pdfengines): embeds => attachments
This commit is contained in:
@@ -11,14 +11,29 @@ Feature: /version
|
||||
{version}
|
||||
"""
|
||||
|
||||
Scenario: GET /version (Gotenberg Trace)
|
||||
@telemetry
|
||||
Scenario: GET /version (Telemetry)
|
||||
Given I have a default Gotenberg container
|
||||
When I make a "GET" request to Gotenberg at the "/version" endpoint with the following header(s):
|
||||
| Gotenberg-Trace | version |
|
||||
| X-Correlation-ID | version |
|
||||
| traceparent | 00-12345678901234567890123456789012-1234567890123456-01 |
|
||||
Then the response status code should be 200
|
||||
Then the response header "Gotenberg-Trace" should be "version"
|
||||
Then the response header "X-Correlation-ID" should be "version"
|
||||
Then the Gotenberg container should log the following entries:
|
||||
| "trace":"version" |
|
||||
| "correlation_id":"version" |
|
||||
| "trace_id":"12345678901234567890123456789012" |
|
||||
|
||||
@telemetry
|
||||
Scenario: GET /version (No Telemetry)
|
||||
Given I have a Gotenberg container with the following environment variable(s):
|
||||
| API_DISABLE_VERSION_ROUTE_TELEMETRY | true |
|
||||
When I make a "GET" request to Gotenberg at the "/version" endpoint with the following header(s):
|
||||
| X-Correlation-ID | version_no_telemetry |
|
||||
| traceparent | 00-12345678901234567890123456789012-1234567890123456-01 |
|
||||
Then the response status code should be 200
|
||||
Then the Gotenberg container should NOT log the following entries:
|
||||
| "correlation_id":"version_no_telemetry" |
|
||||
| "trace_id":"12345678901234567890123456789012" |
|
||||
|
||||
Scenario: GET /version (Basic Auth)
|
||||
Given I have a Gotenberg container with the following environment variable(s):
|
||||
@@ -30,7 +45,6 @@ Feature: /version
|
||||
|
||||
Scenario: GET /foo/version (Root Path)
|
||||
Given I have a Gotenberg container with the following environment variable(s):
|
||||
| API_ENABLE_DEBUG_ROUTE | true |
|
||||
| API_ROOT_PATH | /foo/ |
|
||||
| API_ROOT_PATH | /foo/ |
|
||||
When I make a "GET" request to Gotenberg at the "/foo/version" endpoint
|
||||
Then the response status code should be 200
|
||||
|
||||
Reference in New Issue
Block a user