Skip to content

refactor(tests): move helpers from legacy tests to MCP test files for AlloyDB and HTTP#2991

Open
anubhav756 wants to merge 1 commit intoanubhav-mcp-alloydbainlfrom
anubhav-refactor
Open

refactor(tests): move helpers from legacy tests to MCP test files for AlloyDB and HTTP#2991
anubhav756 wants to merge 1 commit intoanubhav-mcp-alloydbainlfrom
anubhav-refactor

Conversation

@anubhav756
Copy link
Copy Markdown
Contributor

This PR relocates helper functions, mock servers, and test setup configurations from the legacy integration test files (alloydb_integration_test.go, http_integration_test.go) to their corresponding new MCP test files (alloydb_mcp_test.go, http_mcp_test.go). This aligns with the project's transition strategy to ensure that the new MCP tests are self-contained and do not depend on legacy files or harnesses that are slated for eventual deletion.

@anubhav756 anubhav756 self-assigned this Apr 8, 2026
@anubhav756 anubhav756 requested review from a team as code owners April 8, 2026 11:15
Copy link
Copy Markdown
Contributor

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

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 HTTP integration tests by centralizing test server handlers and configuration logic into tests/http/http_mcp_test.go. The changes remove redundant code from tests/http/http_integration_test.go and clean up imports across multiple test files. I have provided feedback regarding the use of GET requests for operations that process request bodies, which violates REST standards, and suggested improvements for robust error handling in the mock handlers.

@anubhav756 anubhav756 force-pushed the anubhav-mcp-alloydbainl branch from e284d4f to 2df66d2 Compare April 8, 2026 11:47
@anubhav756 anubhav756 force-pushed the anubhav-mcp-alloydbainl branch from 2df66d2 to 3ebac40 Compare April 8, 2026 15:36
@anubhav756 anubhav756 force-pushed the anubhav-refactor branch 2 times, most recently from a8b0611 to af509ce Compare April 8, 2026 16:16
@anubhav756 anubhav756 force-pushed the anubhav-mcp-alloydbainl branch 2 times, most recently from 207bdc3 to ec26c46 Compare April 8, 2026 19:32
… AlloyDB and HTTP

This PR relocates helper functions, mock servers, and test setup configurations from the legacy integration test files (`alloydb_integration_test.go`, `http_integration_test.go`) to their corresponding new MCP test files (`alloydb_mcp_test.go`, `http_mcp_test.go`).
This aligns with the project's transition strategy to ensure that the new MCP tests are self-contained and do not depend on legacy files or harnesses that are slated for eventual deletion.
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.

1 participant