Align API smoke checks with package summary routes
Check the current summary endpoint across all four supported windows, including 72 hours, while retaining invalid-window rejection. This fixes the obsolete events route that stopped isolated CI acceptance.
This commit is contained in:
1 parent
95c5d77133
commit
2f1e07b7b1
1 file changed
+2
-2
@@ -46,8 +46,8 @@ async def main():
|
||||
response.raise_for_status()
|
||||
assert response.json()['code'] == 0, path
|
||||
assert 'CI synthetic news' in (await client.get('/api/news?q=CI')).text
|
||||
for endpoint in ('overview', 'events'):
|
||||
for hours in (24, 48, 168):
|
||||
for endpoint in ('overview', 'summaries'):
|
||||
for hours in (24, 48, 72, 168):
|
||||
response = await client.get('/api/risk/'+endpoint, params={'hours': hours})
|
||||
response.raise_for_status()
|
||||
assert response.json()['code'] == 0
|
||||
|
||||
Reference in new issue
Block a user