Commit 2702245
committed
feat(storage-api-client): require BranchAwareClient for swapTables
The /tables/{id}/swap route is only registered under
/v2/storage/branch/{branchId}/... (isAvailableWithoutBranch: false),
so calling swapTables() on a plain Client previously produced a
confusing 404. Mirror the existing guard pattern used by
refreshTableInformationInBucket() and pullTableToBranch() and throw
a ClientException with a clear message instead.
Update the SwapTableTest call sites to use a BranchAwareClient and
add an explicit test for the new guard.1 parent 7f3f561 commit 2702245
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1439 | 1439 | | |
1440 | 1440 | | |
1441 | 1441 | | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
1442 | 1446 | | |
1443 | 1447 | | |
1444 | 1448 | | |
| |||
0 commit comments