test(federation-identity): scaffold + harness boot smoke

This commit is contained in:
Jannis Braun
2026-05-03 23:34:57 +02:00
parent a2fadf7e93
commit 2df346cf03
@@ -0,0 +1,23 @@
import { describe, it, expect, beforeAll, afterAll } from 'vitest';
import { bootTwoInstances, type TwoInstanceHarness } from './helpers/twoInstanceHarness.js';
import { peerInstances } from './helpers/seedPeer.js';
let harness: TwoInstanceHarness;
let sharedHmacSecret: string;
beforeAll(async () => {
harness = await bootTwoInstances();
sharedHmacSecret = await peerInstances(harness.home, harness.remote);
}, 60_000);
afterAll(async () => {
if (harness) await harness.cleanup();
});
describe('Federation identity deletion — server suite', () => {
it('boots the harness and peers the two instances', async () => {
expect(harness.home.origin).toMatch(/^http:\/\/127\.0\.0\.1:\d+$/);
expect(harness.remote.origin).toMatch(/^http:\/\/127\.0\.0\.1:\d+$/);
expect(sharedHmacSecret).toHaveLength(64);
});
});