Prove the provisioned Setup URI workflow

This commit is contained in:
vorotamoroz
2026-07-20 16:37:35 +00:00
parent 499f9e93e5
commit 86492ca2cc
12 changed files with 822 additions and 129 deletions
+4
View File
@@ -33,6 +33,10 @@ Deno.test("generates a current self-hosted Setup URI through the published Commo
const decoded = await decodeSettingsFromSetupURI(setupURI, "setup-secret");
assert(decoded, "Commonlib could not decode the generated Setup URI");
const effectiveSettings = { ...DEFAULT_SETTINGS, ...decoded };
assert(
effectiveSettings.isConfigured,
"the CouchDB Setup URI left the imported device unconfigured",
);
assert(
effectiveSettings.customChunkSize === 60,
"the Setup URI did not use the current self-hosted chunk-size recommendation",
+4
View File
@@ -24,6 +24,10 @@ Deno.test("generates an Object Storage Setup URI with a selected S3 profile", as
);
assert(decoded, "Commonlib could not decode the Object Storage Setup URI");
const effective = { ...DEFAULT_SETTINGS, ...decoded };
assert(
effective.isConfigured,
"the Setup URI left the imported device unconfigured",
);
assert(
effective.customChunkSize === 10,
"the journal chunk-size preset was not applied",
+1
View File
@@ -55,6 +55,7 @@ function applyEncryptedVaultSettings(
environment: SetupGeneratorEnvironment,
): void {
Object.assign(settings, {
isConfigured: true,
encrypt: true,
passphrase: requireValue(environment, "passphrase"),
usePathObfuscation: true,