mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-10 08:05:14 +02:00
test: verify managed local ingest daemon runtime
This commit is contained in:
parent
2982983a83
commit
b3c09a2136
2 changed files with 6 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue