tpagectl: site delete lacks non-404 error passthrough test #557

Closed
opened 2026-08-05 16:05:45 +00:00 by the.auditor · 0 comments
Owner

site delete only special-cases 404 (friendly "site not found" message), mirroring the same gap noted in #554 for site get. The non-404 HTTP error passthrough path is untested — e.g. a 500 from the daemon, or the 403 "not authorized to delete this site" the handler returns on an owner mismatch, should surface as the raw error without the not-found wrapper.

Suggested fix: add a test asserting a non-404 HTTPError propagates unchanged.

Ref: PR #555

`site delete` only special-cases 404 (friendly "site not found" message), mirroring the same gap noted in #554 for `site get`. The non-404 HTTP error passthrough path is untested — e.g. a 500 from the daemon, or the 403 "not authorized to delete this site" the handler returns on an owner mismatch, should surface as the raw error without the not-found wrapper. Suggested fix: add a test asserting a non-404 HTTPError propagates unchanged. Ref: PR #555
fuzzy closed this issue 2026-08-05 16:30:19 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
thwap/thwap-pagesd#557
No description provided.