Open
Bug 1929466
Opened 3 months ago
Updated 1 month ago
landing jobs errors should return JSON objects
Categories
(Conduit :: Lando, defect, P3)
Conduit
Lando
Tracking
(Not tracked)
NEW
People
(Reporter: shtrom, Assigned: shtrom)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Two landing jobs tests remain skipped after bug 1915712 https://github.com/mozilla-conduit/lando/blob/c56c9faf90b1e4bb80dbd89b2365d20313f0e37b/src/lando/api/tests/test_landing_job.py#L77-L102
This is due to the fact that those error paths do not return JsonResponse
, but lead to exceptions getting thrown, which in turns get transformed via HTML views.
Comment 1•3 months ago
|
||
Assignee | ||
Updated•3 months ago
|
Assignee: nobody → omehani
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•3 months ago
|
||
Two-stage fix:
- unskip the tests, but only check the HTTP status code (not the response body)
- fix the response body (either by replacing exceptions with JsonResponses, or updating the Exception view to return JSON rather than HTML)
Updated•3 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
Priority: -- → P3
Assignee | ||
Updated•1 month ago
|
Status: ASSIGNED → NEW
You need to log in
before you can comment on or make changes to this bug.
Description
•