Add configurable history and storage retention policies
This commit is contained in:
@@ -27,7 +27,7 @@ it('returns uncached, empty diagnostics for a registered server before any reque
|
||||
expect(response.status).toBe(200);
|
||||
expect(response.headers.get('cache-control')).toContain('no-store');
|
||||
expect(await response.json()).toEqual({
|
||||
ok: true, requests: [], retention: { maxPerServer: 200, maxAgeDays: 7 }
|
||||
ok: true, requests: [], retention: { maxPerServer: 200, maxAgeDays: 7, maxTotal: 10000 }
|
||||
});
|
||||
expect((await diagnostics('unknown')).status).toBe(404);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user