mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-06-19 13:21:46 +00:00
test: add comprehensive coverage for OAuth scopes, MCP, and core services
Adds new and expanded test suites across client and server to cover the OAuth 2.1 scope system, MCP session manager, collab service, unified memories helpers, OIDC service, budget slice, and OAuth authorize page. Also extends SonarQube coverage exclusions to include bootstrapping files (migrations, scheduler, main.tsx, types.ts) that are not meaningfully testable.
This commit is contained in:
@@ -92,6 +92,18 @@ export const adminHandlers = [
|
||||
return HttpResponse.json({ tokens: [] });
|
||||
}),
|
||||
|
||||
http.get('/api/admin/oauth-sessions', () => {
|
||||
return HttpResponse.json({ sessions: [] });
|
||||
}),
|
||||
|
||||
http.delete('/api/admin/oauth-sessions/:id', () => {
|
||||
return HttpResponse.json({ success: true });
|
||||
}),
|
||||
|
||||
http.delete('/api/admin/mcp-tokens/:id', () => {
|
||||
return HttpResponse.json({ success: true });
|
||||
}),
|
||||
|
||||
http.get('/api/admin/permissions', () => {
|
||||
return HttpResponse.json({ permissions: {} });
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user