fix: update docs endpoint test and add Zammad settings metadata
- Update test_docs_endpoint to use new /admin/api-docs path - Add SETTING_METADATA entries for zammad_url, zammad_chat_enabled, zammad_chat_id, zammad_form_enabled, support_email Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
@@ -2223,6 +2223,47 @@ SETTING_METADATA = {
|
||||
"required": False,
|
||||
"restart_required": False,
|
||||
},
|
||||
# Support / Help Center – Zammad integration
|
||||
"zammad_url": {
|
||||
"category": "Support",
|
||||
"description": "Base URL of your Zammad instance (e.g. https://zammad.example.com). Required for the chat widget and feedback form.",
|
||||
"type": "string",
|
||||
"sensitive": False,
|
||||
"required": False,
|
||||
"restart_required": False,
|
||||
},
|
||||
"zammad_chat_enabled": {
|
||||
"category": "Support",
|
||||
"description": "Show a Zammad live-chat widget on the Help Center page.",
|
||||
"type": "boolean",
|
||||
"sensitive": False,
|
||||
"required": False,
|
||||
"restart_required": False,
|
||||
},
|
||||
"zammad_chat_id": {
|
||||
"category": "Support",
|
||||
"description": "Zammad chat topic ID (see Channels → Chat → Topics in Zammad admin). Default: 1.",
|
||||
"type": "integer",
|
||||
"sensitive": False,
|
||||
"required": False,
|
||||
"restart_required": False,
|
||||
},
|
||||
"zammad_form_enabled": {
|
||||
"category": "Support",
|
||||
"description": "Show a 'Submit a Ticket' feedback form on the Help Center page.",
|
||||
"type": "boolean",
|
||||
"sensitive": False,
|
||||
"required": False,
|
||||
"restart_required": False,
|
||||
},
|
||||
"support_email": {
|
||||
"category": "Support",
|
||||
"description": "Support e-mail address displayed on the Help Center page.",
|
||||
"type": "string",
|
||||
"sensitive": False,
|
||||
"required": False,
|
||||
"restart_required": False,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -46,7 +46,7 @@ class TestHealthEndpoints:
|
||||
|
||||
def test_docs_endpoint(self, client: TestClient):
|
||||
"""Test that API documentation is accessible."""
|
||||
response = client.get("/docs")
|
||||
response = client.get("/admin/api-docs")
|
||||
assert response.status_code == 200
|
||||
assert "swagger" in response.text.lower() or "openapi" in response.text.lower()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user