refactor: retire legacy tbank-sync status and sync=observe (WealthLedger/backend#196)
Backend verify / commits (push) Skipped
Backend verify / security (push) Successful in 1m7s
Backend verify / verify (push) Failing after 7m39s

This commit was merged in pull request #197.
This commit is contained in:
2026-11-05 22:33:14 +03:00
parent 83b515a453
commit d792baaf59
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);