feat(api): add contract-safe jobs read endpoints

This commit is contained in:
chick
2026-07-18 00:23:45 +08:00
parent e46e81ea77
commit e45b011bb8
6 changed files with 922 additions and 0 deletions
+3
View File
@@ -43,6 +43,9 @@ describe('buildControlPlaneApp', () => {
expect(response.statusCode).toBe(401);
expect(response.headers['content-type']).toContain('application/problem+json');
expect(response.json()).toMatchObject({ status: 401, code: 'UNAUTHORIZED' });
const jobs = await app.inject({ method: 'GET', url: '/api/v1/jobs' });
expect(jobs.statusCode).toBe(200);
expect(jobs.json()).toEqual({ items: [], page: { page: 1, pageSize: 25, total: 0 } });
await app.close();
});