24 lines
1.3 KiB
TypeScript
24 lines
1.3 KiB
TypeScript
/** Exclusive disposable SQL/localhost profile, not a real Docker Q test. */
|
|
import assert from "node:assert/strict"
|
|
import { assertOwnedBandwidthSql } from "./bandwidth-admission-process.sql-helper.js"
|
|
|
|
async function main() {
|
|
assertOwnedBandwidthSql()
|
|
assert.equal(process.env.MMAPP_OWN_EXTERNAL_PEER_METADATA, "true")
|
|
assert.equal(process.env.MMAPP_OWN_BANDWIDTH_EXTERNAL_REGISTRY, "true")
|
|
const { createOwnedExternalRegistryHarness } = await import("./bandwidth-external-node-registry.sql-helper.js")
|
|
const { acceptOwnedExternalPeerMetadata } = await import("./bandwidth-external-peer-metadata.sql-helper.js")
|
|
const fixture = await createOwnedExternalRegistryHarness()
|
|
try {
|
|
const checks = await acceptOwnedExternalPeerMetadata(fixture)
|
|
console.log("Owned guarded peer sources accepted:", JSON.stringify({
|
|
groups: checks.length, checks, actualSql: true, genuineLocalhostLicense: true,
|
|
guardedManagedAndExternalSources: true, originalWindowMs: 5000,
|
|
quiescenceVerifier: "synthetic-fixture", catalogSource: "synthetic-fixture",
|
|
productionOperatorWindowAccepted: false, productionWired: false,
|
|
}))
|
|
} finally { await fixture.close() }
|
|
}
|
|
|
|
void main().catch(() => { console.error("Owned guarded peer-source acceptance failed; no real CHR/Docker actions"); process.exitCode = 1 })
|