feat(health): add external URL column, backfill domains, thread through repo

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
root
2026-06-08 00:54:10 +10:00
parent 276889e7fe
commit 789dc2442e
3 changed files with 34 additions and 9 deletions

View File

@@ -30,4 +30,12 @@ describe('registry', () => {
expect(after.every(s => s.source === 'manual' && s.enabled)).toBe(true);
expect(await seedFromConfig()).toBe(0); // table not empty → no-op
});
it('persists and returns external on create/get/update', async () => {
const id = 'ext-test';
await services.create({ id, name: 'Ext', url: 'http://10.0.0.1', external: 'https://ext.example.com' });
expect((await services.get(id)).external).toBe('https://ext.example.com');
const upd = await services.update(id, { external: 'https://ext2.example.com' });
expect(upd.external).toBe('https://ext2.example.com');
});
});