refactor: retire legacy tbank-sync status and sync=observe (WealthLedger/backend#196)
Backend verify / commits (pull_request) Successful in 1m25s
Backend verify / security (pull_request) Successful in 1m8s
Backend verify / verify (pull_request) Successful in 6m20s

This commit is contained in:
2026-11-05 22:22:48 +03:00
parent 83b515a453
commit d1c5f575cf
36 changed files with 182 additions and 832 deletions
+3 -3
View File
@@ -66,7 +66,7 @@ describe('All accounts HTTP boundary', () => {
it.each(paths)('requires authentication for /all/%s', async (path) => {
await request(app.getHttpServer())
.get(
`/api/v1/brokerage-accounts/all/${path}${path.includes('?') ? '&' : '?'}sync=observe`,
`/api/v1/brokerage-accounts/all/${path}`,
)
.expect(401);
expect(upstream.getOpenAccounts).not.toHaveBeenCalled();
@@ -77,7 +77,7 @@ describe('All accounts HTTP boundary', () => {
async (path) => {
const response = await request(app.getHttpServer())
.get(
`/api/v1/brokerage-accounts/all/${path}${path.includes('?') ? '&' : '?'}sync=observe`,
`/api/v1/brokerage-accounts/all/${path}`,
)
.set('Authorization', `Bearer ${token}`)
.expect(200);
@@ -100,7 +100,7 @@ describe('All accounts HTTP boundary', () => {
])('validates /all/%s in the configured pipeline', async (path) => {
await request(app.getHttpServer())
.get(
`/api/v1/brokerage-accounts/all/${path}${path.includes('?') ? '&' : '?'}sync=observe`,
`/api/v1/brokerage-accounts/all/${path}`,
)
.set('Authorization', `Bearer ${token}`)
.expect(400);