mirror of
https://github.com/open-metadata/OpenMetadata
synced 2026-05-24 09:39:11 +00:00
* Re-enable MCP tests under openmetadata-integration-tests PR #26204 removed MCP tests from the openmetadata-mcp module. This re-creates them under openmetadata-integration-tests so they run as part of the standard integration test suite. Changes: - Add McpIntegrationIT: tests MCP initialization, tools/list, prompts/list, and tool calls via HTTP against the /mcp endpoint - Add McpToolsValidationIT: ordered tests validating each MCP tool (search, get entity, create glossary/term, patch, lineage, test definitions, test cases, root cause analysis, deleted field handling) - Add McpTestUtils: shared JSON-RPC request builders for MCP tests - Register MCP server in TestSuiteBootstrap after seed data loads using reflection to reset ApplicationContext and invoke registerMCPServer() - Add openmetadata-mcp and assertj-core dependencies to pom.xml - Delete .github/workflows/mcp-tests.yml (no longer needed) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Fix no-op assertion and remove blanket catch blocks in McpToolsValidationIT - Assert search result contains expected query instead of discarding the boolean return value of contains() - Remove try-catch blocks in testPatchEntityTool and testGetEntityLineageTool that silently swallowed all exceptions Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Fix search assertion to use substring match on entity names Search returns entity names like "mcp_val_table" for query "mcp_val", so the assertion must check if any returned name contains the query string rather than requiring an exact set membership match. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Refactor: extract McpTestBase, add ApplicationContext.reinitialize() - Add ApplicationContext.reinitialize() to replace reflection-based singleton reset in TestSuiteBootstrap - Extract shared MCP test infrastructure (HTTP client, auth, entity creation, SSE parsing, MCP request execution) into McpTestBase - McpIntegrationIT and McpToolsValidationIT now extend McpTestBase, removing ~230 lines of duplicated boilerplate - Fix SSE parser to concatenate all data: lines per the SSE spec Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| actions | ||
| ISSUE_TEMPLATE | ||
| trivy/templates | ||
| workflows | ||
| CODEOWNERS | ||
| copilot-instructions.md | ||
| e2eLabeler.yml | ||
| labeler.yml | ||
| pull_request_template.md | ||
| teams.yml | ||