test: verify managed local ingest daemon runtime

This commit is contained in:
Andrey Avtomonov 2026-05-11 12:42:50 +02:00
parent 2982983a83
commit b3c09a2136
2 changed files with 6 additions and 2 deletions

View file

@ -179,7 +179,9 @@ describe('runKtxServeStdio', () => {
it('passes managed daemon options to MCP local ingest adapters and pull-config options', async () => {
const project = { projectDir: '/tmp/ktx-project', config: { connections: {} } } as never;
const adapters = [{ source: 'looker', skillNames: [] }];
const adapters: SourceAdapter[] = [
{ source: 'looker', skillNames: [], detect: async () => true, chunk: async () => ({ workUnits: [] }) },
];
const createIngestAdapters = vi.fn(() => adapters);
const createContextTools = vi.fn(() => ({ connections: { list: async () => [] } }));
const managedRuntimeIo = makeManagedRuntimeIo();

View file

@ -868,7 +868,9 @@ describe('createLocalProjectMcpContextPorts', () => {
}) as never);
const ports = createLocalProjectMcpContextPorts(project, {
localIngest: {
adapters: [{ source: 'looker', skillNames: [] }],
adapters: [
{ source: 'looker', skillNames: [], detect: async () => true, chunk: async () => ({ workUnits: [] }) },
],
pullConfigOptions: {
looker: {
daemonBaseUrl: 'http://127.0.0.1:61234',