Skip to content

Fix test projects that don't follow folder structure#2640

Merged
hallipr merged 1 commit into
microsoft:mainfrom
alzimmermsft:FixTestProjectsNotFollowingGuidelines
May 14, 2026
Merged

Fix test projects that don't follow folder structure#2640
hallipr merged 1 commit into
microsoft:mainfrom
alzimmermsft:FixTestProjectsNotFollowingGuidelines

Conversation

@alzimmermsft
Copy link
Copy Markdown
Contributor

What does this PR do?

Fixes test projects that don't follow folder structure expectations.

GitHub issue number?

[Link to the GitHub issue this PR addresses]

Pre-merge Checklist

  • Required for All PRs
    • Read contribution guidelines
    • PR title clearly describes the change
    • Commit history is clean with descriptive messages (cleanup guide)
    • Added comprehensive tests for new/modified functionality
    • Created a changelog entry if the change falls among the following: new feature, bug fix, UI/UX update, breaking change, or updated dependencies. Follow the changelog entry guide
  • For MCP tool changes:
    • One tool per PR: This PR adds or modifies only one MCP tool for faster review cycles
    • Updated servers/Azure.Mcp.Server/README.md and/or servers/Fabric.Mcp.Server/README.md documentation
    • Validate README.md changes running the script ./eng/scripts/Process-PackageReadMe.ps1. See Package README
    • For new or modified tool descriptions, ran ToolDescriptionEvaluator and obtained a score of 0.4 or more and a top 3 ranking for all related test prompts
    • For tools with new names, including new tools or renamed tools, update consolidated-tools.json
    • For renamed tools, follow the Tool Rename Checklist and tag the PR with the breaking-change label
    • For new tools associated with Azure services or publicly available tools/APIs/products, add URL to documentation in the PR description
  • Extra steps for Azure MCP Server tool changes:
    • Updated command list in servers/Azure.Mcp.Server/docs/azmcp-commands.md
    • Ran ./eng/scripts/Update-AzCommandsMetadata.ps1 to update tool metadata in azmcp-commands.md (required for CI)
    • Updated test prompts in servers/Azure.Mcp.Server/docs/e2eTestPrompts.md
    • 👉 For Community (non-Microsoft team member) PRs:
      • Security review: Reviewed code for security vulnerabilities, malicious code, or suspicious activities before running tests (crypto mining, spam, data exfiltration, etc.)
      • Manual tests run: added comment /azp run mcp - pullrequest - live to run Live Test Pipeline

Copy link
Copy Markdown
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 reorganizes several test projects to match the expected tests/<ProjectName>/<ProjectName>.csproj folder structure, while adding/updating related tests and documentation for Fabric and distributed HTTP server components.

Changes:

  • Updated solution and project references to point to nested test project folders.
  • Added/reorganized Fabric OneLake and Fabric Core test coverage, helpers, and test docs.
  • Updated distributed HTTP server tests and docs with minor cleanup and validation coverage.

Reviewed changes

Copilot reviewed 15 out of 43 changed files in this pull request and generated no comments.

Show a summary per file
File Description
Microsoft.Mcp.slnx Updates test project paths.
servers/Fabric.Mcp.Server/Fabric.Mcp.Server.slnx Updates Fabric test project paths.
core/Microsoft.ModelContextProtocol.HttpServer.Distributed/Microsoft.ModelContextProtocol.HttpServer.Distributed.slnx Updates distributed HTTP server test path.
core/.../Microsoft.ModelContextProtocol.HttpServer.Distributed.Tests.csproj Fixes project reference after folder move.
core/.../TESTSERVER_SESSION_AFFINITY.md Adds TestServer/session-affinity design notes.
core/.../KeyedServiceTests.cs Minor formatting/cancellation-token cleanup.
core/.../ListeningEndpointResolverTests.cs Simplifies test initialization and collection setup.
core/.../RealServerIntegrationTests.cs Uses test cancellation tokens and primary constructors.
core/.../SessionAffinityEndpointFilterTests.cs Simplifies helper test types and assertions.
core/.../SessionAffinityOptionsValidationTests.cs Adds options/attribute validation tests.
core/.../SessionOwnerInfoSerializerTests.cs Simplifies serializer field initialization.
tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/Fabric.Mcp.Tools.Core.Tests.csproj Fixes source project reference.
tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/FabricCoreSetupTests.cs Adds Fabric Core setup tests.
tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/README.md Updates test project title.
tools/Fabric.Mcp.Tools.Core/tests/Fabric.Mcp.Tools.Core.Tests/Commands/ItemCreateCommandTests.cs Updates namespace after folder rename.
tools/Fabric.Mcp.Tools.OneLake/src/AssemblyInfo.cs Updates test assembly visibility.
tools/Fabric.Mcp.Tools.OneLake/tests/Fabric.Mcp.Tools.OneLake.Tests/Fabric.Mcp.Tools.OneLake.Tests.csproj Fixes source project reference.
tools/Fabric.Mcp.Tools.OneLake/tests/Fabric.Mcp.Tools.OneLake.Tests/FabricOneLakeSetupTests.cs Removes unused imports.
tools/Fabric.Mcp.Tools.OneLake/tests/Fabric.Mcp.Tools.OneLake.Tests/README.md Adds OneLake test documentation.
tools/Fabric.Mcp.Tools.OneLake/tests/Fabric.Mcp.Tools.OneLake.Tests/TestImplementationSummary.md Adds OneLake test implementation summary.
tools/Fabric.Mcp.Tools.OneLake/tests/Fabric.Mcp.Tools.OneLake.Tests/TestSupport/CapturingHttpMessageHandler.cs Adds HTTP request capture test helper.
tools/Fabric.Mcp.Tools.OneLake/tests/Fabric.Mcp.Tools.OneLake.Tests/TestSupport/FakeTokenCredential.cs Adds fake Azure credential test helper.
tools/Fabric.Mcp.Tools.OneLake/tests/Fabric.Mcp.Tools.OneLake.Tests/Services/OneLakePathTraversalTests.cs Adds traversal validation tests.
tools/Fabric.Mcp.Tools.OneLake/tests/Fabric.Mcp.Tools.OneLake.Tests/Services/OneLakeServiceTests.cs Adds OneLake service architecture/example tests.
tools/Fabric.Mcp.Tools.OneLake/tests/Fabric.Mcp.Tools.OneLake.Tests/Services/OneLakeServiceUserAgentTests.cs Adds User-Agent header tests.
tools/Fabric.Mcp.Tools.OneLake/tests/Fabric.Mcp.Tools.OneLake.Tests/Commands/BlobDeleteCommandTests.cs Adds blob delete command tests.
tools/Fabric.Mcp.Tools.OneLake/tests/Fabric.Mcp.Tools.OneLake.Tests/Commands/BlobGetCommandTests.cs Adds blob download command tests.
tools/Fabric.Mcp.Tools.OneLake/tests/Fabric.Mcp.Tools.OneLake.Tests/Commands/BlobListCommandTests.cs Adds blob list command tests.
tools/Fabric.Mcp.Tools.OneLake/tests/Fabric.Mcp.Tools.OneLake.Tests/Commands/BlobPutCommandTests.cs Adds blob upload command tests.
tools/Fabric.Mcp.Tools.OneLake/tests/Fabric.Mcp.Tools.OneLake.Tests/Commands/DirectoryCreateCommandTests.cs Adds directory create command tests.
tools/Fabric.Mcp.Tools.OneLake/tests/Fabric.Mcp.Tools.OneLake.Tests/Commands/DirectoryDeleteCommandTests.cs Adds directory delete command tests.
tools/Fabric.Mcp.Tools.OneLake/tests/Fabric.Mcp.Tools.OneLake.Tests/Commands/FileDeleteCommandTests.cs Adds file delete command tests.
tools/Fabric.Mcp.Tools.OneLake/tests/Fabric.Mcp.Tools.OneLake.Tests/Commands/FileReadCommandTests.cs Adds file read command tests.
tools/Fabric.Mcp.Tools.OneLake/tests/Fabric.Mcp.Tools.OneLake.Tests/Commands/FileWriteCommandTests.cs Adds file write command tests.
tools/Fabric.Mcp.Tools.OneLake/tests/Fabric.Mcp.Tools.OneLake.Tests/Commands/OneLakeItemDataListCommandTests.cs Adds item data-list command tests.
tools/Fabric.Mcp.Tools.OneLake/tests/Fabric.Mcp.Tools.OneLake.Tests/Commands/OneLakeItemListCommandTests.cs Adds item list command tests.
tools/Fabric.Mcp.Tools.OneLake/tests/Fabric.Mcp.Tools.OneLake.Tests/Commands/OneLakeWorkspaceListCommandTests.cs Adds workspace list command tests.
tools/Fabric.Mcp.Tools.OneLake/tests/Fabric.Mcp.Tools.OneLake.Tests/Commands/PathListCommandTests.cs Adds path list command tests.
tools/Fabric.Mcp.Tools.OneLake/tests/Fabric.Mcp.Tools.OneLake.Tests/Commands/Table/TableConfigGetCommandTests.cs Adds table config command tests.
tools/Fabric.Mcp.Tools.OneLake/tests/Fabric.Mcp.Tools.OneLake.Tests/Commands/Table/TableGetCommandTests.cs Adds table get command tests.
tools/Fabric.Mcp.Tools.OneLake/tests/Fabric.Mcp.Tools.OneLake.Tests/Commands/Table/TableListCommandTests.cs Adds table list command tests.
tools/Fabric.Mcp.Tools.OneLake/tests/Fabric.Mcp.Tools.OneLake.Tests/Commands/Table/TableNamespaceGetCommandTests.cs Adds table namespace get command tests.
tools/Fabric.Mcp.Tools.OneLake/tests/Fabric.Mcp.Tools.OneLake.Tests/Commands/Table/TableNamespaceListCommandTests.cs Adds table namespace list command tests.

@hallipr hallipr merged commit 8afb76b into microsoft:main May 14, 2026
29 checks passed
@github-project-automation github-project-automation Bot moved this from Untriaged to Done in Azure MCP Server May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants