Answer stability round 1: 0 🔴, 4 🟡 (0 misread); the driver decides what parses so a multi-host DSN still works, and the nine-key test shrinks to four

This commit is contained in:
2026-10-31 13:56:46 +01:00
parent b8686377c9
commit 8ffbb0b70d
7 changed files with 25 additions and 26 deletions
-10
View File
@@ -181,16 +181,6 @@ test("provisioning still runs with nothing to provision, so orphans are reported
assert.deepEqual(calls[0]?.pluginIds, []);
});
// The postgres driver rethrows a malformed DSN with the whole string on the error (`input`), so
// the URL is checked here, before the driver sees it.
test("a malformed PLUGIN_DB_ADMIN_URL is refused by name, never echoing the password", async () => {
const env = { PLUGIN_DB_ADMIN_URL: "postgres://admin:pa/ss@db:5432/plugins" };
await assert.rejects(
provisionPluginStorage(env, [storagePlugin("things")], SILENT, async () => ({ orphans: [], provisioned: [] })),
(err: Error) => err.message.includes("PLUGIN_DB_ADMIN_URL") && !err.message.includes("pa/ss"),
);
});
test("a plugin declaring storage without a provisioning DSN fails loud, naming the plugin", async () => {
const { calls, provision } = recordingProvisioner();
await assert.rejects(