test(tpagectl): close tests-lump audit gaps #635
No reviewers
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!635
Loading…
Reference in a new issue
No description provided.
Delete branch "test/issue-tests"
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?
Batch for the tpagectl tests lump of the auditor issues.
clierr.IsNotFound/clierr.NotFoundfcentralize the 404-to-KindNotFoundmapping, andoutput.RenderFormatcentralizes the--formatdispatch (json/yaml/table + validation error). The site package now reuses them insiteNotFound; the five inline 404 blocks indeployment(get/list/rollback/promote) collapse to one-liners.TestConfigFlagOverridesFileasserts--server/--tokenbeat an explicit--configfile.TestResolveTokencovers config-wins, keychain fallback, empty, unavailable, not-found, and genuine-error propagation. (Thecredentialspackage itself already has unit tests from the #588 pass.)TestSiteGetNon404Passthroughasserts a 500 propagates as the raw*client.HTTPErrorwithout the not-found wrapper.TestListInvalidFormat(rejects--format xml) andTestListLimitBeyondResults(--limitlarger than the set).TestRollbackNon404Passthrough.TestDeletePreviewHandlerNoContentcovers the nil-deployment/no-error branch (fake extended withdelPreviewNil).Closes #541, #554, #566, #571, #578, #593, #561, #565.
7ed88feec286f63d9963