17 lines
642 B
JavaScript
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/);
|
|
});
|