Skip to content

Ensure that Run tests (http) is actually testing http - #3340

Open
Chidozie Ononiwu (chidozieononiwu) wants to merge 5 commits into
microsoft:mainfrom
chidozieononiwu:ensureHttpTesting
Open

Ensure that Run tests (http) is actually testing http#3340
Chidozie Ononiwu (chidozieononiwu) wants to merge 5 commits into
microsoft:mainfrom
chidozieononiwu:ensureHttpTesting

Update KeyVaultCommandTests and StorageCommandTests

37f2858
Select commit
Loading
Failed to load commit list.
Azure Pipelines / mcp - pullrequest failed Aug 25, 2026 in 37m 1s

Build #20260825.25 had test failures

Details

Tests

  • Failed: 3 (0.01%)
  • Passed: 31,457 (98.17%)
  • Other: 583 (1.82%)
  • Total: 32,043
Code coverage

  • 32409 of 79160 line covered (40.94%)

Annotations

Check failure on line 29689 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / mcp - pullrequest

Build log #L29689

Command failed to execute (00:17:52.9805360): dotnet test  --results-directory '/Users/runner/work/1/a/testResults' --report-xunit-trx --output 'Detailed' 

Check failure on line 29692 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / mcp - pullrequest

Build log #L29692

PowerShell exited with code '1'.

Check failure on line 1 in Azure.Mcp.Tools.Cosmos.Tests.CosmosCommandTests.Should_show_single_item_from_cosmos_account

See this annotation in the file changed.

@azure-pipelines azure-pipelines / mcp - pullrequest

Azure.Mcp.Tools.Cosmos.Tests.CosmosCommandTests.Should_show_single_item_from_cosmos_account

Property 'items' not found. Full element: '{\"message\":\"{\\u0022Message\\u0022:\\u0022Unable to find a record for the request GET https://Sanitized.documents.azure.com/\\\\nUri doesn\\\\u0027t match:\\\\n    request \\\\u003Chttps://Sanitized.documents.azure.com/\\\\u003E\\\\n    record  \\\\u003Chttps://Sanitized.documents.azure.com/dbs/ToDoList/colls/VectorItems\\\\u003E\\\\nHeader differences:\\\\n    \\\\u003Cx-ms-activity-id\\\\u003E is absent in request, value \\\\u003C40e54ef1-e1ea-4a5b-aada-9c3814dc5ba2\\\\u003E\\\\n    \\\\u003Cx-ms-date\\\\u003E is absent in request, value \\\\u003CWed, 27 May 2026 05:51:41 GMT\\\\u003E\\\\nBody differences:\\\\nRemaining Entries:\\\\n0: https://Sanitized.documents.azure.com/dbs/ToDoList/colls/VectorItems\\\\n1: https://Sanitized.documents.azure.com/dbs/ToDoList/colls/VectorItems/docs\\\\n2: https://Sanitized.documents.azure.com/dbs/4AIhAA==/colls/4AIhAOM69Xg=/pkranges\\\\n3: https://Sanitized.documents.azure.com/dbs/4AIhAA==/colls/4AIhAOM69Xg=/pkranges\\\\n4: https://Sanitized.documents.azure.com/dbs/ToDoList/colls/VectorItems/docs\\\\n\\u0022,\\u0022Status\\u0022:\\u0022NotFound\\u0022}\\nRequestUri: http://127.0.0.1:50068/;\\nRequestMethod: GET;\\nHeader: Authorization Length: 40;\\nHeader: User-Agent Length: 152;\\nHeader: Cache-Control Length: 8;\\nHeader: x-ms-version Length: 10;\\nHeader: x-ms-cosmos-sdk-supportedcapabilities Length: 1;\\nHeader: Accept Length: 16;\\nHeader: x-recording-upstream-base-uri Length: 38;\\n\\nActivityId: 7851f6b6-eaf8-45c1-89f7-7479eb7b3ea7, Request URI: /, RequestStats: , SDK: Darwin/10.20 cosmos-netstandard-sdk/3.18.0\",\"stackTrace\":\"   at Microsoft.Azure.Cosmos.GatewayStoreClient.ParseResponseAsync(HttpResponseMessage responseMessage, JsonSerializerOptions serializerSettings, DocumentServiceRequest request)\\n   at Microsoft.Azure.Cosmos.GatewayStoreModel.GetDatabaseAccountAsync(Func\\u00601 requestMessage, IClientSideRequestStatistics clientSideRequestStatistics, CancellationToken cancellationToken)\\n   at Microsoft.Azure.Cosmos.DocumentClient.GetDatabaseAccountPrivateAsync(Uri serviceEndpoint, CancellationToken cancellationToken)\\n   at Microsoft.Azure.Cosmos.ClientContextCore.RunWithDiagnosticsHelperAsync[TResult](String containerName, String databaseName, OperationType operationType, ITrace trace, Func\\u00602 task, Nullable\\u00601 openTelemetry, RequestOptions requestOptions, Nullable\\u00601 resourceType)\\n   at Microsoft.Azure.Cosmos.ClientContextCore.OperationHelperWithRootTraceAsync[TResult](String operationName, String containerName, String databaseName, OperationType operationType, RequestOptions requestOptions, Func\\u00602 task, Nullable\\u00601 openTelemetry, TraceComponent traceComponent, TraceLevel traceLevel, Nullable\\u00601 resourceType)\\n   at Azure.Mcp.Tools.Cosmos.Services.CosmosService.ValidateCosmosClientAsync(CosmosClient client, CancellationToken cancellationToken) in /Users/runner/work/1/s/tools/Azure.Mcp.Tools.Cosmos/src/Services/CosmosService.cs:line 145\\n   at Azure.Mcp.Tools.Cosmos.Services.CosmosService.CreateCosmosClientWithAuth(String accountName, String subscription, AuthMethod authMethod, String tenant, String resourceGroup, RetryPolicyOptions retryPolicy, CancellationToken cancellationToken) in /Users/runner/work/1/s/tools/Azure.Mcp.Tools.Cosmos/src/Services/CosmosService.cs:line 126\\n   at Azure.Mcp.Tools.Cosmos.Services.CosmosService.GetCosmosClientAsync(String accountName, String subscription, AuthMethod authMethod, String tenant, String resourceGroup, RetryPolicyOptions retryPolicy, CancellationToken cancellationToken) in /Users/runner/work/1/s/tools/Azure.Mcp.Tools.Cosmos/src/Services/CosmosService.cs:line 164\\n   at Azure.Mcp.Tools.Cosmos.Services.CosmosService.QueryItems(String accountName, String databaseName, String containerName, String query, String subscription, AuthMethod authMethod, String tenant, RetryPolicyOptions retryPolicy, CancellationToken cancellationToken) in /Users/runner/
Raw output
   at Microsoft.Mcp.Tests.TestExtensions.AssertProperty(JsonElement element, String propertyName) in /Users/runner/work/1/s/core/Microsoft.Mcp.Core/tests/Microsoft.Mcp.Tests/TestExtensions.cs:line 58
   at Microsoft.Mcp.Tests.TestExtensions.AssertProperty(Nullable`1 element, String propertyName) in /Users/runner/work/1/s/core/Microsoft.Mcp.Core/tests/Microsoft.Mcp.Tests/TestExtensions.cs:line 53
   at Azure.Mcp.Tools.Cosmos.Tests.CosmosCommandTests.Should_show_single_item_from_cosmos_account() in /Users/runner/work/1/s/tools/Azure.Mcp.Tools.Cosmos/tests/Azure.Mcp.Tools.Cosmos.Tests/CosmosCommandTests.cs:line 172
--- End of stack trace from previous location ---

Check failure on line 1 in Azure.Mcp.Core.Tests.ClientToolTests.Client_Should_Ping_Server_Successfully

See this annotation in the file changed.

@azure-pipelines azure-pipelines / mcp - pullrequest

Azure.Mcp.Core.Tests.ClientToolTests.Client_Should_Ping_Server_Successfully

Assert.Throws() Failure: No exception was thrown
Expected: typeof(ModelContextProtocol.McpProtocolException)
Raw output
   at Azure.Mcp.Core.Tests.ClientToolTests.AssertMethodNotFoundAsync(Func`1 action, String method) in /Users/runner/work/1/s/core/Azure.Mcp.Core/tests/Azure.Mcp.Core.Tests/ClientToolTests.cs:line 151
   at Azure.Mcp.Core.Tests.ClientToolTests.Client_Should_Ping_Server_Successfully() in /Users/runner/work/1/s/core/Azure.Mcp.Core/tests/Azure.Mcp.Core.Tests/ClientToolTests.cs:line 66
--- End of stack trace from previous location ---

Check failure on line 1 in Azure.Mcp.Core.Tests.ClientToolTests.Should_Not_Hang_On_Logging_SetLevel_Not_Supported

See this annotation in the file changed.

@azure-pipelines azure-pipelines / mcp - pullrequest

Azure.Mcp.Core.Tests.ClientToolTests.Should_Not_Hang_On_Logging_SetLevel_Not_Supported

Assert.Throws() Failure: No exception was thrown
Expected: typeof(ModelContextProtocol.McpProtocolException)
Raw output
   at Azure.Mcp.Core.Tests.ClientToolTests.AssertMethodNotFoundAsync(Func`1 action, String method) in /Users/runner/work/1/s/core/Azure.Mcp.Core/tests/Azure.Mcp.Core.Tests/ClientToolTests.cs:line 151
   at Azure.Mcp.Core.Tests.ClientToolTests.Should_Not_Hang_On_Logging_SetLevel_Not_Supported() in /Users/runner/work/1/s/core/Azure.Mcp.Core/tests/Azure.Mcp.Core.Tests/ClientToolTests.cs:line 118
--- End of stack trace from previous location ---