mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-14 03:12:14 +01:00
refactor(pdfengines): embeds => attachments
This commit is contained in:
@@ -11,14 +11,29 @@ Feature: /
|
||||
Hey, Gotenberg has no UI, it's an API. Head to the <a href="https://gotenberg.dev">documentation</a> to learn how to interact with it 🚀
|
||||
"""
|
||||
|
||||
Scenario: GET / (Gotenberg Trace)
|
||||
@telemetry
|
||||
Scenario: GET / (Telemetry)
|
||||
Given I have a default Gotenberg container
|
||||
When I make a "GET" request to Gotenberg at the "/" endpoint with the following header(s):
|
||||
| Gotenberg-Trace | root |
|
||||
| X-Correlation-ID | root |
|
||||
| traceparent | 00-12345678901234567890123456789012-1234567890123456-01 |
|
||||
Then the response status code should be 200
|
||||
Then the response header "Gotenberg-Trace" should be "root"
|
||||
Then the response header "X-Correlation-ID" should be "root"
|
||||
Then the Gotenberg container should log the following entries:
|
||||
| "trace":"root" |
|
||||
| "correlation_id":"root" |
|
||||
| "trace_id":"12345678901234567890123456789012" |
|
||||
|
||||
@telemetry
|
||||
Scenario: GET / (No Telemetry)
|
||||
Given I have a Gotenberg container with the following environment variable(s):
|
||||
| API_DISABLE_ROOT_ROUTE_TELEMETRY | true |
|
||||
When I make a "GET" request to Gotenberg at the "/" endpoint with the following header(s):
|
||||
| X-Correlation-ID | root_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":"root_no_telemetry" |
|
||||
| "trace_id":"12345678901234567890123456789012" |
|
||||
|
||||
Scenario: GET / (Basic Auth)
|
||||
Given I have a Gotenberg container with the following environment variable(s):
|
||||
@@ -39,14 +54,16 @@ Feature: /
|
||||
When I make a "GET" request to Gotenberg at the "/favicon.ico" endpoint
|
||||
Then the response status code should be 204
|
||||
|
||||
Scenario: GET /favicon.ico (Gotenberg Trace)
|
||||
@telemetry
|
||||
Scenario: GET /favicon.ico (No Telemetry)
|
||||
Given I have a default Gotenberg container
|
||||
When I make a "GET" request to Gotenberg at the "/favicon.ico" endpoint with the following header(s):
|
||||
| Gotenberg-Trace | favicon |
|
||||
| X-Correlation-ID | favicon_no_telemetry |
|
||||
| traceparent | 00-12345678901234567890123456789012-1234567890123456-01 |
|
||||
Then the response status code should be 204
|
||||
Then the response header "Gotenberg-Trace" should be "favicon"
|
||||
Then the Gotenberg container should log the following entries:
|
||||
| "trace":"favicon" |
|
||||
Then the Gotenberg container should NOT log the following entries:
|
||||
| "correlation_id":"favicon_no_telemetry" |
|
||||
| "trace_id":"12345678901234567890123456789012" |
|
||||
|
||||
Scenario: GET /favicon.ico (Basic Auth)
|
||||
Given I have a Gotenberg container with the following environment variable(s):
|
||||
|
||||
Reference in New Issue
Block a user