fix(config): stop generating ingest adapter allow lists

This commit is contained in:
Andrey Avtomonov 2026-05-13 18:08:05 +02:00
parent 3b2f9fc870
commit 9afc5c87c3
6 changed files with 57 additions and 73 deletions

View file

@ -756,7 +756,7 @@ describe('setup sources step', () => {
expect(testPrompts.text).toHaveBeenCalledTimes(4);
});
it('enables the dbt adapter when adding a dbt source connection', async () => {
it('adds a dbt source connection without adapter allow-list entries', async () => {
await addPrimarySource();
const validateDbt = vi.fn(async () => ({ ok: true as const, detail: 'project=analytics schemas=2' }));
@ -776,7 +776,11 @@ describe('setup sources step', () => {
),
).resolves.toEqual({ status: 'ready', projectDir, connectionIds: ['dbt-main'] });
expect((await readConfig()).ingest.adapters).toContain('dbt');
const configText = await readFile(join(projectDir, 'ktx.yaml'), 'utf-8');
expect(configText).not.toContain('live-database');
expect(configText).not.toContain('historic-sql');
expect(configText).not.toMatch(/^\s+adapters:/m);
expect((await readConfig()).ingest.adapters).toEqual([]);
});
it('lets interactive setup retry or continue after initial source ingest fails', async () => {