tpagectl: deployment rollback lacks non-404 error passthrough test #571
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thwap/thwap-pagesd#571
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
deployment rollbackonly 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 roll back this site" the handler returns on an owner mismatch, should surface as the raw error without the not-found wrapper.This is the recurring gap already filed for
site get(#554),site delete(#557), and noted fordeployment list(#566).Suggested fix: add a test asserting a non-404 HTTPError propagates unchanged.
Ref: PR #570
Fixed in #635:
TestRollbackNon404Passthroughasserts a 500 rollback error propagates as the raw*client.HTTPErrorwith status 500 and no not-found wrapper.