Skip to content

Fix monitor_healthmodels_entity_get HTTP 400 error#2896

Open
jairmyree wants to merge 4 commits into
mainfrom
jairmyree/fix-healthmodels-entity-get-400
Open

Fix monitor_healthmodels_entity_get HTTP 400 error#2896
jairmyree wants to merge 4 commits into
mainfrom
jairmyree/fix-healthmodels-entity-get-400

Assert 400 status in Should_Return400_WithInvalidHealthModelInput

8ed7390
Select commit
Loading
Failed to load commit list.
Azure Pipelines / mcp - pullrequest - live failed Jun 23, 2026 in 52m 49s

Build #20260623.1 had test failures

Details

Tests

  • Failed: 15 (0.05%)
  • Passed: 27,766 (99.78%)
  • Other: 47 (0.17%)
  • Total: 27,828
Code coverage

  • 2093 of 227929 line covered (0.92%)

Annotations

Check failure on line 315 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / mcp - pullrequest - live

Build log #L315

PowerShell exited with code '1'.

Check failure on line 315 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / mcp - pullrequest - live

Build log #L315

PowerShell exited with code '1'.

Check failure on line 315 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / mcp - pullrequest - live

Build log #L315

PowerShell exited with code '1'.

Check failure on line 312 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / mcp - pullrequest - live

Build log #L312

PowerShell exited with code '1'.

Check failure on line 1 in Azure.Mcp.Tools.Monitor.Tests.MonitorCommandTests.Should_Return400_WithInvalidHealthModelInput(args: "--subscription sub --resource-group rg")

See this annotation in the file changed.

@azure-pipelines azure-pipelines / mcp - pullrequest - live

Azure.Mcp.Tools.Monitor.Tests.MonitorCommandTests.Should_Return400_WithInvalidHealthModelInput(args: "--subscription sub --resource-group rg")

System.ClientModel.ClientResultException : Service request failed.
Status: 404 (Not Found)
Raw output
   at Microsoft.Mcp.Tests.Generated.Internal.ClientPipelineExtensions.ProcessMessageAsync(ClientPipeline pipeline, PipelineMessage message, RequestOptions options) in D:\a\_work\1\s\core\Microsoft.Mcp.Core\tests\Microsoft.Mcp.Tests\Generated\Internal\ClientPipelineExtensions.cs:line 22
   at Microsoft.Mcp.Tests.Generated.TestProxyClient.StartPlaybackAsync(BinaryContent content, String recordingId, RequestOptions options) in D:\a\_work\1\s\core\Microsoft.Mcp.Core\tests\Microsoft.Mcp.Tests\Generated\TestProxyClient.cs:line 238
   at Microsoft.Mcp.Tests.Generated.TestProxyClient.StartPlaybackAsync(TestProxyStartInformation body, String recordingId, CancellationToken cancellationToken) in D:\a\_work\1\s\core\Microsoft.Mcp.Core\tests\Microsoft.Mcp.Tests\Generated\TestProxyClient.cs:line 265
   at Microsoft.Mcp.Tests.Client.RecordedCommandTestsBase.StartRecordOrPlayback() in D:\a\_work\1\s\core\Microsoft.Mcp.Core\tests\Microsoft.Mcp.Tests\Client\RecordedCommandTestsBase.cs:line 412
   at Microsoft.Mcp.Tests.Client.RecordedCommandTestsBase.InitializeAsync() in D:\a\_work\1\s\core\Microsoft.Mcp.Core\tests\Microsoft.Mcp.Tests\Client\RecordedCommandTestsBase.cs:line 194
   at Azure.Mcp.Tools.Monitor.Tests.MonitorCommandTests.InitializeAsync() in D:\a\_work\1\s\tools\Azure.Mcp.Tools.Monitor\tests\Azure.Mcp.Tools.Monitor.Tests\MonitorCommandTests.cs:line 91

Check failure on line 1 in Azure.Mcp.Tools.Monitor.Tests.MonitorCommandTests.Should_Get_Entity_Health

See this annotation in the file changed.

@azure-pipelines azure-pipelines / mcp - pullrequest - live

Azure.Mcp.Tools.Monitor.Tests.MonitorCommandTests.Should_Get_Entity_Health

System.ClientModel.ClientResultException : Service request failed.
Status: 404 (Not Found)
Raw output
   at Microsoft.Mcp.Tests.Generated.Internal.ClientPipelineExtensions.ProcessMessageAsync(ClientPipeline pipeline, PipelineMessage message, RequestOptions options) in D:\a\_work\1\s\core\Microsoft.Mcp.Core\tests\Microsoft.Mcp.Tests\Generated\Internal\ClientPipelineExtensions.cs:line 22
   at Microsoft.Mcp.Tests.Generated.TestProxyClient.StartPlaybackAsync(BinaryContent content, String recordingId, RequestOptions options) in D:\a\_work\1\s\core\Microsoft.Mcp.Core\tests\Microsoft.Mcp.Tests\Generated\TestProxyClient.cs:line 238
   at Microsoft.Mcp.Tests.Generated.TestProxyClient.StartPlaybackAsync(TestProxyStartInformation body, String recordingId, CancellationToken cancellationToken) in D:\a\_work\1\s\core\Microsoft.Mcp.Core\tests\Microsoft.Mcp.Tests\Generated\TestProxyClient.cs:line 265
   at Microsoft.Mcp.Tests.Client.RecordedCommandTestsBase.StartRecordOrPlayback() in D:\a\_work\1\s\core\Microsoft.Mcp.Core\tests\Microsoft.Mcp.Tests\Client\RecordedCommandTestsBase.cs:line 412
   at Microsoft.Mcp.Tests.Client.RecordedCommandTestsBase.InitializeAsync() in D:\a\_work\1\s\core\Microsoft.Mcp.Core\tests\Microsoft.Mcp.Tests\Client\RecordedCommandTestsBase.cs:line 194
   at Azure.Mcp.Tools.Monitor.Tests.MonitorCommandTests.InitializeAsync() in D:\a\_work\1\s\tools\Azure.Mcp.Tools.Monitor\tests\Azure.Mcp.Tools.Monitor.Tests\MonitorCommandTests.cs:line 91

Check failure on line 1 in Azure.Mcp.Tools.Monitor.Tests.MonitorCommandTests.Should_Return400_WithInvalidHealthModelInput(args: "--subscription invalidSub")

See this annotation in the file changed.

@azure-pipelines azure-pipelines / mcp - pullrequest - live

Azure.Mcp.Tools.Monitor.Tests.MonitorCommandTests.Should_Return400_WithInvalidHealthModelInput(args: "--subscription invalidSub")

System.ClientModel.ClientResultException : Service request failed.
Status: 404 (Not Found)
Raw output
   at Microsoft.Mcp.Tests.Generated.Internal.ClientPipelineExtensions.ProcessMessageAsync(ClientPipeline pipeline, PipelineMessage message, RequestOptions options) in D:\a\_work\1\s\core\Microsoft.Mcp.Core\tests\Microsoft.Mcp.Tests\Generated\Internal\ClientPipelineExtensions.cs:line 22
   at Microsoft.Mcp.Tests.Generated.TestProxyClient.StartPlaybackAsync(BinaryContent content, String recordingId, RequestOptions options) in D:\a\_work\1\s\core\Microsoft.Mcp.Core\tests\Microsoft.Mcp.Tests\Generated\TestProxyClient.cs:line 238
   at Microsoft.Mcp.Tests.Generated.TestProxyClient.StartPlaybackAsync(TestProxyStartInformation body, String recordingId, CancellationToken cancellationToken) in D:\a\_work\1\s\core\Microsoft.Mcp.Core\tests\Microsoft.Mcp.Tests\Generated\TestProxyClient.cs:line 265
   at Microsoft.Mcp.Tests.Client.RecordedCommandTestsBase.StartRecordOrPlayback() in D:\a\_work\1\s\core\Microsoft.Mcp.Core\tests\Microsoft.Mcp.Tests\Client\RecordedCommandTestsBase.cs:line 412
   at Microsoft.Mcp.Tests.Client.RecordedCommandTestsBase.InitializeAsync() in D:\a\_work\1\s\core\Microsoft.Mcp.Core\tests\Microsoft.Mcp.Tests\Client\RecordedCommandTestsBase.cs:line 194
   at Azure.Mcp.Tools.Monitor.Tests.MonitorCommandTests.InitializeAsync() in D:\a\_work\1\s\tools\Azure.Mcp.Tools.Monitor\tests\Azure.Mcp.Tools.Monitor.Tests\MonitorCommandTests.cs:line 91

Check failure on line 1 in Azure.Mcp.Tools.Monitor.Tests.MonitorCommandTests.Should_Return400_WithInvalidHealthModelInput(args: "--invalid-param")

See this annotation in the file changed.

@azure-pipelines azure-pipelines / mcp - pullrequest - live

Azure.Mcp.Tools.Monitor.Tests.MonitorCommandTests.Should_Return400_WithInvalidHealthModelInput(args: "--invalid-param")

System.ClientModel.ClientResultException : Service request failed.
Status: 404 (Not Found)
Raw output
   at Microsoft.Mcp.Tests.Generated.Internal.ClientPipelineExtensions.ProcessMessageAsync(ClientPipeline pipeline, PipelineMessage message, RequestOptions options) in D:\a\_work\1\s\core\Microsoft.Mcp.Core\tests\Microsoft.Mcp.Tests\Generated\Internal\ClientPipelineExtensions.cs:line 22
   at Microsoft.Mcp.Tests.Generated.TestProxyClient.StartPlaybackAsync(BinaryContent content, String recordingId, RequestOptions options) in D:\a\_work\1\s\core\Microsoft.Mcp.Core\tests\Microsoft.Mcp.Tests\Generated\TestProxyClient.cs:line 238
   at Microsoft.Mcp.Tests.Generated.TestProxyClient.StartPlaybackAsync(TestProxyStartInformation body, String recordingId, CancellationToken cancellationToken) in D:\a\_work\1\s\core\Microsoft.Mcp.Core\tests\Microsoft.Mcp.Tests\Generated\TestProxyClient.cs:line 265
   at Microsoft.Mcp.Tests.Client.RecordedCommandTestsBase.StartRecordOrPlayback() in D:\a\_work\1\s\core\Microsoft.Mcp.Core\tests\Microsoft.Mcp.Tests\Client\RecordedCommandTestsBase.cs:line 412
   at Microsoft.Mcp.Tests.Client.RecordedCommandTestsBase.InitializeAsync() in D:\a\_work\1\s\core\Microsoft.Mcp.Core\tests\Microsoft.Mcp.Tests\Client\RecordedCommandTestsBase.cs:line 194
   at Azure.Mcp.Tools.Monitor.Tests.MonitorCommandTests.InitializeAsync() in D:\a\_work\1\s\tools\Azure.Mcp.Tools.Monitor\tests\Azure.Mcp.Tools.Monitor.Tests\MonitorCommandTests.cs:line 91