tpagectl: site get lacks non-404 error passthrough test #554

Closed
opened 2026-08-05 14:06:34 +00:00 by the.auditor · 1 comment
Owner

site get only special-cases 404 (friendly "site not found" message). The non-404 HTTP error passthrough path is untested — e.g. a 500 from the daemon, or the 403 "not authorized to view this site" the status endpoint 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 #553

`site get` only special-cases 404 (friendly "site not found" message). The non-404 HTTP error passthrough path is untested — e.g. a 500 from the daemon, or the 403 "not authorized to view this site" the status endpoint 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 #553
Owner

Fixed in #635: TestSiteGetNon404Passthrough asserts a 500 propagates as the raw *client.HTTPError with status 500 and no not-found wrapper.

Fixed in #635: `TestSiteGetNon404Passthrough` asserts a 500 propagates as the raw `*client.HTTPError` with status 500 and no not-found wrapper.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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#554
No description provided.