Repository navigation
test(mcp): add McpServiceResourceIT - #36679
Conversation
Code Review ✅ Approved🟡 Medium risk · Adding MCP service SDK CRUD access introduces a new public client surface; mapping errors could misdirect service requests. Adds McpServiceResourceIT by extending BaseServiceIT and introduces McpServiceService in the Java SDK with OpenMetadataClient.mcpServices(), plus MCP-specific checks for registry connections, apiKey encryption and masking, and recursive hard delete cleanup. No issues found. VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|
🤖 Backport to |
|
🤖 Backport to |
|
🤖 Backport to |
|
🤖 Backport to |
Describe your changes:
Fixes the empty
McpServiceResourceITplaceholder that the Java test planner selects and then reports as missing results (context: #36553).McpServiceResourceITwas a TODO with no class. It now extendsBaseServiceITlike the other service ITs, so MCP services get the shared CRUD, versions, delete/restore and followers coverage.McpServiceServiceto the Java SDK andOpenMetadataClient.mcpServices(), same shape asllmServices().apiKeyis Fernet-encrypted at rest, masked to an admin and in clear to the ingestion bot; a recursive hard delete of a service with an MCP server leaves no orphan rows or search docs.Type of change:
High-level design:
N/A: small change, test plus one SDK accessor.
Tests:
Use cases covered
BaseServiceIT).apiKeyis encrypted in the DB, masked for admin and readable for the ingestion bot.mcp_server_search_indexdoc.Unit tests
N/A: no production logic changed.
McpServiceServiceis exercised by the IT.Backend integration tests
McpServiceResourceITinopenmetadata-integration-tests/.bfae3020333(MySQL + Elasticsearch, parallel lane): 208 tests, 0 failures, 0 errors, 35 skipped. The skips are inherited cases MCP services opt out of (entity status, CSV import/export, patch).OpenMetadataClientchanged, so the planner selects the full IT suite. It runs in CI on this branch, and the block below gets filled from that run before this leaves draft.Ingestion integration tests
N/A: no ingestion changes.
Playwright (UI) tests
N/A: no UI changes.
Manual testing performed
N/A: test and SDK only.
UI screen recording:
Not applicable: no UI change.
Checklist:
Fixes <issue-number>: <short explanation>(test fix, no issue, labelledskip-pr-checks)Fixes #<issue-number>above.REVIEW.md(thepr-checklistskill runs it) and fixed every 🔴 finding, or answered it on the line below.bfae3020333: no 🔴. Earlier passes' nits (duplicated request builder, skipped subtree delete, read-only secret check) are fixed in this commit./v1/services/mcpServicespath; no new contract, default or limit.