Update hivegrid-cloud reference to latest main

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
davidandClaude Fable 5 committed 2026-07-08 16:15:37 +02:00
1 parent e98d38e716
commit 7b21524c86
3781 files changed
+373484 -225607

No files matched your search

@@ -26,8 +26,8 @@ describe("API maintenance middleware", () => {
test("parses enabled and retry-after config from safe env values", () => {
expect(
getApiMaintenanceConfig({
TOOLCTRL_API_MAINTENANCE_MODE: "1",
TOOLCTRL_API_MAINTENANCE_RETRY_AFTER_SECONDS: "120",
HIVEGRID_API_MAINTENANCE_MODE: "1",
HIVEGRID_API_MAINTENANCE_RETRY_AFTER_SECONDS: "120",
})
).toEqual({ enabled: true, retryAfterSeconds: 120 });
});
@@ -35,15 +35,15 @@ describe("API maintenance middleware", () => {
test("ignores disabled flags and invalid retry-after values", () => {
expect(
getApiMaintenanceConfig({
TOOLCTRL_API_MAINTENANCE_MODE: "true",
TOOLCTRL_API_MAINTENANCE_RETRY_AFTER_SECONDS: "postgres://user:secret@db.local/app",
HIVEGRID_API_MAINTENANCE_MODE: "true",
HIVEGRID_API_MAINTENANCE_RETRY_AFTER_SECONDS: "postgres://user:secret@db.local/app",
})
).toEqual({ enabled: false, retryAfterSeconds: undefined });
expect(
getApiMaintenanceConfig({
TOOLCTRL_API_MAINTENANCE_MODE: "1",
TOOLCTRL_API_MAINTENANCE_RETRY_AFTER_SECONDS: "1.5",
HIVEGRID_API_MAINTENANCE_MODE: "1",
HIVEGRID_API_MAINTENANCE_RETRY_AFTER_SECONDS: "1.5",
})
).toEqual({ enabled: true, retryAfterSeconds: undefined });
});