Files
HiveGrid-Wireframes/03 Quellen und Referenzen/hivegrid-cloud/scripts/verify-shk-first-steps-migration.test.mjs
T

15 lines
596 B
JavaScript

// @vitest-environment node
import fs from "node:fs";
import { describe, expect, it } from "vitest";
describe("SHK first-steps migration fixture", () => {
it("waits for the final TCP PostgreSQL server with bounded cold-start headroom", () => {
const source = fs.readFileSync(new URL("./verify-shk-first-steps-migration.sh", import.meta.url), "utf8");
expect(source).toMatch(/for attempt in \$\(seq 1 90\)/u);
expect(source).toMatch(/pg_isready -h 127\.0\.0\.1 -U "\$POSTGRES_USER" -d "\$POSTGRES_DB"/u);
expect(source).toMatch(/if \[\[ "\$attempt" == "90" \]\]/u);
});
});