Skip to content

test(cloud-sql-admin): Create MCP integration tests#2985

Open
dishaprakash wants to merge 43 commits intomcp-cloud-sql-mssql-testsfrom
mcp-cloud-sql-admin-api-tests
Open

test(cloud-sql-admin): Create MCP integration tests#2985
dishaprakash wants to merge 43 commits intomcp-cloud-sql-mssql-testsfrom
mcp-cloud-sql-admin-api-tests

Conversation

@dishaprakash
Copy link
Copy Markdown
Contributor

@dishaprakash dishaprakash commented Apr 8, 2026

Description

Duplicated all Cloud SQL Admin API Tests with the new mcp_tool.go harness for initialization and execution using MCP Endpoints

@dishaprakash dishaprakash requested a review from a team as a code owner April 8, 2026 05:00
@dishaprakash dishaprakash marked this pull request as draft April 8, 2026 05:00
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 introduces a comprehensive suite of integration tests for Cloud SQL Model Context Protocol (MCP) tools, covering operations such as cloning instances, creating backups, databases, and users, as well as listing and restoring resources. Several issues were identified in the new test files, including a missing fmt import in cloudsql_list_instances_mcp_test.go that will cause compilation errors, and a missing reflect import in cloud_sql_restore_backup_mcp_test.go. Additionally, it is recommended to use map-based deep comparison for JSON results in the restore backup tests to avoid fragility, and to standardize error handling in the operation wait tests using existing helper functions.

Comment thread tests/cloudsql/cloud_sql_list_instances_mcp_test.go
Comment thread tests/cloudsql/cloud_sql_restore_backup_mcp_test.go
Comment thread tests/cloudsql/cloud_sql_restore_backup_mcp_test.go Outdated
Comment thread tests/cloudsql/cloudsql_wait_for_operation_mcp_test.go Outdated
@dishaprakash dishaprakash marked this pull request as ready for review April 8, 2026 06:46
@dishaprakash dishaprakash force-pushed the mcp-cloud-sql-mssql-tests branch from 168c651 to a52be69 Compare April 8, 2026 17:19
@dishaprakash dishaprakash requested a review from a team as a code owner April 8, 2026 17:19
@dishaprakash dishaprakash assigned anubhav756 and unassigned Yuan325 Apr 8, 2026
@dishaprakash dishaprakash force-pushed the mcp-cloud-sql-mssql-tests branch from a0fac99 to d559003 Compare April 9, 2026 00:19
@dishaprakash dishaprakash force-pushed the mcp-cloud-sql-admin-api-tests branch from 54da7cf to 735f4e7 Compare April 9, 2026 00:26
@dishaprakash dishaprakash added the release candidate Use label to signal PR should be included in the next release. label Apr 9, 2026
@dishaprakash dishaprakash force-pushed the mcp-cloud-sql-mssql-tests branch 3 times, most recently from 5d605aa to 7dfd96a Compare April 9, 2026 22:32
@anubhav756 anubhav756 added priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. and removed release candidate Use label to signal PR should be included in the next release. labels Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants