salvage: uncommitted work from dewey-r178b (disk cleanup #824, 2026-11-06)
This commit is contained in:
1 parent
931651f2de
commit
f3a00d0ed7
11 files changed
+376
-14
No files matched your search
@@ -1286,3 +1286,26 @@ test('T46 row 181 item 4: every table in the bus schema is in exactly one of fou
|
||||
for(const n of lists[3])assert.ok(!hasAt(n),`${n} has no at`);
|
||||
db.close();
|
||||
});
|
||||
|
||||
// Row 178: proof metadata uses temp fixture files, never the installed slot.
|
||||
async function seedProof(e) {
|
||||
await seed(e);
|
||||
const file=join(e.root,'proof.fixture');writeFileSync(file,'fixture_proxy_proof_012345678901234567890123456789',{mode:0o600});
|
||||
const extra=['--public-host','console.example','--auth-header','x-user','--allow-user','jason','--proof-header','x-console-proof','--proof-file',file];
|
||||
const p=pointer(e);p.console.push(...extra);writeFileSync(e.pointer,JSON.stringify(p)+'\n');
|
||||
const unit=join(e.units,CON);edit(unit,` --business acme\n`,` --business acme ${extra.join(' ')}\n`);
|
||||
return p.console;
|
||||
}
|
||||
test('T178 proxy proof header and path survive re-pin and rollback unchanged in the pointer and unit',async t=>{
|
||||
const e=await mk(t),expected=await seedProof(e);
|
||||
let r=await run(e,'activate',C1,'acme');assert.equal(r.code,0,r.out+r.err);
|
||||
assert.deepEqual(pointer(e).console,expected);assert.ok(consoleText(e).includes(expected.join(' ')));
|
||||
r=await run(e,'rollback','acme');assert.equal(r.code,0,r.out+r.err);
|
||||
assert.equal(pointer(e).copy,B);assert.deepEqual(pointer(e).console,expected);assert.ok(consoleText(e).includes(expected.join(' ')));
|
||||
});
|
||||
test('T178 proxy proof pair survives a tester-port replacement as well',async t=>{
|
||||
const e=await mk(t),expected=await seedProof(e);
|
||||
const r=await run(e,'activate',C1,'acme','--tester-port','7333');assert.equal(r.code,0,r.out+r.err);
|
||||
assert.deepEqual(pointer(e).console,[...expected,'--tester-port','7333']);
|
||||
assert.ok(consoleText(e).includes([...expected,'--tester-port','7333'].join(' ')));
|
||||
});
|
||||
Reference in new issue
Block a user