fix: update integration tests to use valid tools after v2.25.0 removal

Replaced all references to removed tools in integration tests:
- list_nodes -> search_nodes
- get_database_statistics -> tools_documentation
- list_ai_tools -> search_nodes/tools_documentation
- list_tasks -> tools_documentation
- get_node_as_tool_info -> removed test section

Updated test files:
- tests/integration/mcp-protocol/basic-connection.test.ts
- tests/integration/mcp-protocol/performance.test.ts
- tests/integration/mcp-protocol/session-management.test.ts
- tests/integration/mcp-protocol/test-helpers.ts
- tests/integration/mcp-protocol/tool-invocation.test.ts
- tests/integration/telemetry/mcp-telemetry.test.ts
- tests/unit/mcp/disabled-tools.test.ts
- tests/unit/mcp/tools-documentation.test.ts

Conceived by Romuald Członkowski - https://www.aiadvisors.pl/en

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
czlonkowski
2025-11-25 13:13:26 +01:00
parent 13b8abaafb
commit 7f03f51e87
8 changed files with 175 additions and 312 deletions

View File

@@ -500,15 +500,15 @@ describe.skip('MCP Telemetry Integration', () => {
const slowToolRequest: CallToolRequest = {
method: 'tools/call',
params: {
name: 'list_nodes',
arguments: { limit: 1000 }
name: 'search_nodes',
arguments: { query: 'http', limit: 1000 }
}
};
// Mock a slow operation
vi.spyOn(mcpServer as any, 'executeTool').mockImplementation(async () => {
await new Promise(resolve => setTimeout(resolve, 2000)); // 2 second delay
return { nodes: [], totalCount: 0 };
return { results: [], totalCount: 0 };
});
const server = (mcpServer as any).server;
@@ -519,7 +519,7 @@ describe.skip('MCP Telemetry Integration', () => {
}
expect(telemetry.trackToolUsage).toHaveBeenCalledWith(
'list_nodes',
'search_nodes',
true,
expect.any(Number)
);