Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion tests/unit/test_cloud_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1316,7 +1316,11 @@ def test_generate_dashboard_url_service_error(self):
}
)
assert response.status_code == 500
assert "Failed to generate" in response.json()["detail"]
# The 500 body must be sanitized (CWE-209): a static message, never the
# caught exception text. See reporting_routes.generate_dashboard_url.
detail = response.json()["detail"]
assert detail == "Internal server error"
assert "Looker unavailable" not in detail

def test_generate_dashboard_url_missing_fields(self):
"""Missing required fields return 422."""
Expand Down
Loading