fix(test): missing env var for debug

This commit is contained in:
Julien Neuhart
2025-04-10 16:28:15 +02:00
parent 1bfe86738f
commit 02c4343dfd
+18 -17
View File
@@ -5,23 +5,6 @@ Feature: /debug
When I make a "GET" request to Gotenberg at the "/debug" endpoint
Then the response status code should be 404
Scenario: GET /debug (Build Debug Data Disabled)
Given I have a Gotenberg container with the following environment variable(s):
| GOTENBERG_BUILD_DEBUG_DATA | false |
When I make a "GET" request to Gotenberg at the "/debug" endpoint
Then the response status code should be 200
Then the response header "Content-Type" should be "application/json"
Then the response body should match JSON:
"""
{
"version": "",
"architecture": "",
"modules": null,
"modules_additional_data": null,
"flags": null
}
"""
Scenario: GET /debug (Enabled)
Given I have a Gotenberg container with the following environment variable(s):
| API_ENABLE_DEBUG_ROUTE | true |
@@ -138,6 +121,24 @@ Feature: /debug
}
"""
Scenario: GET /debug (No Debug Data)
Given I have a Gotenberg container with the following environment variable(s):
| GOTENBERG_BUILD_DEBUG_DATA | false |
| API_ENABLE_DEBUG_ROUTE | true |
When I make a "GET" request to Gotenberg at the "/debug" endpoint
Then the response status code should be 200
Then the response header "Content-Type" should be "application/json"
Then the response body should match JSON:
"""
{
"version": "",
"architecture": "",
"modules": null,
"modules_additional_data": null,
"flags": null
}
"""
Scenario: GET /debug (Gotenberg Trace)
Given I have a Gotenberg container with the following environment variable(s):
| API_ENABLE_DEBUG_ROUTE | true |