26 lines
1.0 KiB
JavaScript
26 lines
1.0 KiB
JavaScript
import assert from "node:assert/strict";
|
|
import { readFileSync } from "node:fs";
|
|
|
|
const moduleSource = readFileSync("src/module.ts", "utf8");
|
|
const page = readFileSync("src/features/ConnectorGovernancePage.tsx", "utf8");
|
|
const api = readFileSync("src/api/governedConnectors.ts", "utf8");
|
|
|
|
assert.match(moduleSource, /"admin.sections": adminSections/);
|
|
assert.match(moduleSource, /connectors\.admin\.governed-configurations/);
|
|
assert.match(page, /<AdminPageLayout/);
|
|
assert.match(page, /<PageActionBar/);
|
|
assert.match(page, /refreshable/);
|
|
assert.match(page, /saveAction=/);
|
|
assert.match(page, /useUnsavedDraftGuard/);
|
|
assert.match(page, /<WorkspaceLayout/);
|
|
assert.match(page, /Adopt package revision/);
|
|
assert.match(page, /Protected paths/);
|
|
assert.match(page, /manual_review/);
|
|
assert.match(page, /quarantine/);
|
|
assert.match(page, /Run simulation/);
|
|
assert.match(page, /Review ambiguous connector result/);
|
|
assert.match(api, /idempotency_key/);
|
|
assert.match(api, /credential_ref/);
|
|
|
|
console.log("Connector governance UI structural contract passed.");
|