Files
memind/release-page-data-pg-guard.test.mjs
john 93811f4657
Memind CI / Test, build, and release guards (pull_request) Failing after 15m29s
fix: connect Page Data sandbox to user PostgreSQL
2026-07-17 10:44:41 +08:00

17 lines
642 B
JavaScript

import test from 'node:test';
import assert from 'node:assert/strict';
import fs from 'node:fs';
const releaseScript = fs.readFileSync(
new URL('./scripts/release-portal-runtime-prod.sh', import.meta.url),
'utf8',
);
test('103 release preflight checks host and container access to the user-space PostgreSQL', () => {
assert.match(releaseScript, /MINDSPACE_USERDATA_PG_URL/);
assert.match(releaseScript, /user-space PostgreSQL URL cannot execute SELECT 1/);
assert.match(releaseScript, /host\.docker\.internal/);
assert.match(releaseScript, /port: 5433/);
assert.match(releaseScript, /cannot reach user-space PostgreSQL/);
});