Skip to content

Conversation

@RubenCerna2079
Copy link
Contributor

@RubenCerna2079 RubenCerna2079 commented Oct 27, 2025

Why make this change?

  • Refine Service.Tests changes for MCP #2874
    There is a test that is failing and it needs to be fixed in order to comply with the creation of the new MCP endpoint. The test already existed and covered the scenarios for REST and GraphQL endpoints. It will only be partially fixed, only fixing the issues related to the non-hosted scenario, this is due to the fact that fixing the hosted-scenario will need more changes than expected.

What is this change?

This change partially fixes the test that was failing, the non-hosted scenario was failing because the MCP server was not able to start in time before the test tried to access the MCP endpoint. In order to fix it we added a delay so the server is available before the test tries to access the endpoint.
On the other hand, the hosted scenario is failing because of the way that DAB initializes its MCP service, which means that the base needs to be changed. Which is a bigger task than what is expected of this PR.

How was this tested?

  • Integration Tests
  • Unit Tests

@RubenCerna2079 RubenCerna2079 added this to the Oct 2025 milestone Oct 27, 2025
@RubenCerna2079 RubenCerna2079 self-assigned this Oct 27, 2025
Copilot AI review requested due to automatic review settings October 27, 2025 19:44
@RubenCerna2079 RubenCerna2079 changed the title Dev/rubencerna/mcp fix tests Fix missing MCP test Oct 27, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a failing test for MCP (Model Context Protocol) endpoint support. The test was extended to cover MCP endpoints alongside existing REST and GraphQL endpoint tests, but failed due to the MCP server not being ready in time.

Key changes:

  • Extended test parameters to include MCP endpoint testing alongside REST and GraphQL
  • Added a 2-second delay before MCP endpoint testing to allow server initialization
  • Created a helper method GetMcpResponsePostConfigHydration with retry logic similar to existing GraphQL helper

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@RubenCerna2079
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 6 pipeline(s).

@RubenCerna2079
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 6 pipeline(s).

@RubenCerna2079
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 6 pipeline(s).

@RubenCerna2079
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 6 pipeline(s).

@RubenCerna2079
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 6 pipeline(s).

Copy link
Contributor

@souvikghosh04 souvikghosh04 left a comment

Choose a reason for hiding this comment

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

Left comments mainly about the exponential delay and moving it into a reusable utility. Also suggested adding the issue number to the TODO. Please update the PR title and description to reflect the specific test and behavior addressed.

@souvikghosh04 souvikghosh04 self-assigned this Dec 16, 2025
Copy link
Contributor

@souvikghosh04 souvikghosh04 left a comment

Choose a reason for hiding this comment

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

Approved with some suggestions

Copy link
Collaborator

@Aniruddh25 Aniruddh25 left a comment

Choose a reason for hiding this comment

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

Purpose of this PR is unclear

@RubenCerna2079 RubenCerna2079 changed the title Fix missing MCP test Partial fix for MCP test Dec 17, 2025
@RubenCerna2079
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 6 pipeline(s).

@RubenCerna2079 RubenCerna2079 enabled auto-merge (squash) December 18, 2025 00:50
@RubenCerna2079 RubenCerna2079 modified the milestones: Oct 2025, Dec 2025 Dec 18, 2025
@RubenCerna2079 RubenCerna2079 linked an issue Dec 18, 2025 that may be closed by this pull request
@Aniruddh25
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 6 pipeline(s).

@RubenCerna2079 RubenCerna2079 merged commit 0b43e3b into main Dec 18, 2025
11 checks passed
@RubenCerna2079 RubenCerna2079 deleted the dev/rubencerna/mcp-fix-tests branch December 18, 2025 22:06
@github-project-automation github-project-automation bot moved this from Review In Progress to Done in Data API builder Dec 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Refine Service.Tests changes for MCP

4 participants