Visitar URL original
test(source/dgraph): migrate integration tests to MCP by smadikanti · Pull Request #4202 · googleapis/mcp-toolbox · GitHub
Skip to content

test(source/dgraph): migrate integration tests to MCP - #4202

Open
smadikanti wants to merge 1 commit into
googleapis:mainfrom
smadikanti:chore/dgraph-mcp-migration
Open

smadikanti wants to merge 1 commit into
googleapis:mainfrom
smadikanti:chore/dgraph-mcp-migration

Conversation

@smadikanti

Copy link
Copy Markdown

Migrated Dgraph discovery and query tests to MCP. The tests share the existing setup and no longer enable the legacy API.

Local Dgraph ListTools and CallTools tests passed with the race detector, along with the focused unit checks and lint. The Dgraph Cloud Build step is already disabled on main; this PR leaves that decision unchanged.

PR Checklist

  • Make sure to open an issue as a bug/issue before writing your code!
  • Ensure you have manually reviewed the entire diff before requesting a review
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)
  • Make sure to add ! if this involves a breaking change

Related to #3706

@smadikanti
smadikanti requested a review from a team as a code owner September 30, 2026 18:47
@google-cla

google-cla Bot commented Sep 30, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the Dgraph integration tests by replacing the HTTP-based endpoint tests with Model Context Protocol (MCP) tests. Specifically, it extracts the Dgraph test setup into a reusable helper function setupDgraphTest in dgraph_integration_test.go using t.Cleanup for resource management, and introduces dgraph_mcp_test.go containing TestDgraphMCPListTools and TestDgraphMCPCallTools to verify the MCP tools list and invocation functionality. There are no review comments, so no feedback is provided.

@AlexTalreja

Copy link
Copy Markdown
Contributor

/gcbrun

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants