OpenMetadata/.github
Pere Miquel Brull 9a4ff9a9f2
Re-enable MCP tests under integration tests module (#26258)
* 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>
2026-03-05 15:25:59 +01:00
..
actions ISSUE #20036 - sqlalchemy 2.0 migration (#26031) 2026-03-02 13:07:47 -08:00
ISSUE_TEMPLATE Add issue config.yml (#10347) 2023-03-01 06:51:36 +01:00
trivy/templates Feat: Github Workflow Action for Scanning vulnerabilities using Trivy. (#19710) 2025-02-16 12:02:14 -08:00
workflows Re-enable MCP tests under integration tests module (#26258) 2026-03-05 15:25:59 +01:00
CODEOWNERS chore: update code owner for openmetadata-ui-core-components (#23616) 2025-09-29 19:57:34 +05:30
copilot-instructions.md Chore(UI): Add playwright test standards handbook (#24868) 2025-12-23 10:07:50 +05:30
e2eLabeler.yml Show collapse for record type of topic entity (#16063) 2024-04-29 19:16:40 +05:30
labeler.yml Refactor: remove doc changes from OM repo (#22019) 2025-08-20 14:28:48 +05:30
pull_request_template.md Update PR template (#10700) 2023-03-22 16:50:13 +01:00
teams.yml CI - Update teams.yaml (#23943) 2025-10-17 15:59:34 +05:30