mirror of
https://github.com/bybrooklyn/alchemist.git
synced 2026-04-18 09:53:33 -04:00
chore: checkpoint before release v0.2.10-rc.7
This commit is contained in:
@@ -10,7 +10,28 @@ export async function fulfillJson(route: Route, status: number, body: unknown):
|
||||
|
||||
export async function mockEngineStatus(page: Page): Promise<void> {
|
||||
await page.route("**/api/engine/status", async (route) => {
|
||||
await fulfillJson(route, 200, { status: "ok" });
|
||||
await fulfillJson(route, 200, {
|
||||
status: "paused",
|
||||
manual_paused: true,
|
||||
scheduler_paused: false,
|
||||
draining: false,
|
||||
mode: "balanced",
|
||||
concurrent_limit: 2,
|
||||
is_manual_override: false,
|
||||
});
|
||||
});
|
||||
await page.route("**/api/engine/mode", async (route) => {
|
||||
await fulfillJson(route, 200, {
|
||||
mode: "balanced",
|
||||
is_manual_override: false,
|
||||
concurrent_limit: 2,
|
||||
cpu_count: 8,
|
||||
computed_limits: {
|
||||
background: 1,
|
||||
balanced: 4,
|
||||
throughput: 4,
|
||||
},
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user