mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-08 00:22:14 +01:00
feat(debug): only build debug data when flag is true (#1167)
* only build debug info when log level is debug * introduce new flag 'gotenberg-build-debug-data' * add gotenberg-build-debug-data flag to Makefile * add new integration test for gotenberg-build-debug-data flag * update GET /debug (Enabled) test with gotenberg-build-debug-data flag * reorder GOTENBERG_BUILD_DEBUG_DATA in Makefile * reorder Build Debug Data Disabled test scenario --------- Co-authored-by: Hector Zarate <hector@Hectors-MacBook-Pro.local>
This commit is contained in:
@@ -5,6 +5,23 @@ 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 |
|
||||
@@ -86,6 +103,7 @@ Feature: /debug
|
||||
"chromium-proxy-server": "",
|
||||
"chromium-restart-after": "10",
|
||||
"chromium-start-timeout": "20s",
|
||||
"gotenberg-build-debug-data": "true",
|
||||
"gotenberg-graceful-shutdown-duration": "30s",
|
||||
"libreoffice-auto-start": "false",
|
||||
"libreoffice-disable-routes": "false",
|
||||
|
||||
Reference in New Issue
Block a user