Update hivegrid-cloud reference to latest main
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e98d38e716
commit
7b21524c86
3781 files changed
+373484
-225607
No files matched your search
+21
-8
@@ -40,17 +40,20 @@ describe("Docker runtime smoke contract", () => {
|
||||
|
||||
assert.match(source, /expect_openapi_json/);
|
||||
assert.match(source, /\/v1\/openapi\.json/);
|
||||
assert.match(source, /payload\.paths\["\/v1\/entities\/\{entity\}\/rows"\]/);
|
||||
assert.match(source, /payload\.paths\["\/v1\/session\/current-user"\]/);
|
||||
assert.doesNotMatch(source, /payload\.paths\["\/v1\/workflows\/run\/\{id\}"\]/);
|
||||
});
|
||||
|
||||
it("runs the Coolify web predeploy command inside the final web image", () => {
|
||||
it("boots the web image through the entrypoint migration path (MIGRATE_ON_BOOT/SEED_ON_BOOT)", () => {
|
||||
const source = fs.readFileSync(path.join(rootDir, "scripts/docker-web-runtime-smoke.sh"), "utf8");
|
||||
|
||||
assert.match(source, /docker run --rm --network "\$NETWORK_NAME"/);
|
||||
assert.match(source, /--entrypoint \/bin\/sh/);
|
||||
assert.match(source, /pnpm exec prisma migrate deploy --config prisma\.config\.ts/);
|
||||
assert.match(source, /NODE_ENV=production node packages\/db\/dist\/production-seed\.server\.js/);
|
||||
assert.match(source, /-e MIGRATE_ON_BOOT=true/);
|
||||
assert.match(source, /-e SEED_ON_BOOT=true/);
|
||||
assert.match(source, /MIGRATE_ON_BOOT migration banner/);
|
||||
assert.match(source, /SEED_ON_BOOT seed banner/);
|
||||
// Migrations must not run in a separate one-off container anymore — the
|
||||
// smoke rehearses the exact Coolify boot contract of the web resource.
|
||||
assert.doesNotMatch(source, /--entrypoint \/bin\/sh/);
|
||||
assert.doesNotMatch(source, /DATABASE_URL="\$HOST_DATABASE_URL" pnpm exec prisma migrate deploy/);
|
||||
});
|
||||
|
||||
@@ -81,9 +84,19 @@ describe("Docker runtime smoke contract", () => {
|
||||
|
||||
assert.match(source, /-e WORKER_QUEUE_GROUP=general/);
|
||||
assert.match(source, /-e WORKER_QUEUE_GROUP=mail/);
|
||||
assert.match(source, /expect_worker_health "\$enabled_health_output" ready true general toolctrl\.notifications/);
|
||||
assert.match(source, /expect_worker_health "\$mail_health_output" ready true mail toolctrl\.email/);
|
||||
assert.match(source, /expect_worker_health "\$enabled_health_output" ready true general hivegrid\.notifications/);
|
||||
assert.match(source, /expect_worker_health "\$mail_health_output" ready true mail hivegrid\.email/);
|
||||
assert.match(source, /report\.workerGroup !== expectedGroup/);
|
||||
assert.match(source, /report\.queues\.includes\(expectedQueue\)/);
|
||||
});
|
||||
|
||||
it("boots the MCP image with a token hash secret so the production fail-closed guard is satisfied", () => {
|
||||
// The MCP runtime refuses to boot in production without a token hash secret
|
||||
// (security audit #7). The smoke runs NODE_ENV=production, so it must supply
|
||||
// one or the container exits before the health check.
|
||||
const source = fs.readFileSync(path.join(rootDir, "scripts/docker-mcp-runtime-smoke.sh"), "utf8");
|
||||
|
||||
assert.match(source, /-e NODE_ENV=production/);
|
||||
assert.match(source, /-e MCP_OAUTH_TOKEN_HASH_SECRET=/);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user