Skip to content

[BUG] Test failure: Azure.Mcp.Tools.Sql.UnitTests.FirewallRule.FirewallRuleListCommandTests.ExecuteAsync_ValidatesInputCorrectly #1081

@fanyang-mono

Description

@fanyang-mono

Describe the bug

Link to the build: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5539133&view=logs&j=49488890-c1d0-5a70-282b-85c8b43b1436&t=f1c34ac6-801d-56cc-8a01-8f676d0a67a6

Error message

  Failed Azure.Mcp.Tools.Sql.UnitTests.FirewallRule.FirewallRuleListCommandTests.ExecuteAsync_ValidatesInputCorrectly(args: "--resource-group rg --server server", shouldSucceed: False) [40 ms]
  Error Message:
   Assert.Equal() Failure: Values differ
Expected: BadRequest
Actual:   OK
  Stack Trace:
     at Azure.Mcp.Tools.Sql.UnitTests.FirewallRule.FirewallRuleListCommandTests.ExecuteAsync_ValidatesInputCorrectly(String args, Boolean shouldSucceed) in D:\a\_work\1\s\tools\Azure.Mcp.Tools.Sql\tests\Azure.Mcp.Tools.Sql.UnitTests\FirewallRule\FirewallRuleListCommandTests.cs:line 77

Expected behavior

Test should pass on CI

Actual behavior

Test failed

Reproduction Steps

I am not sure. It seems to be flaky.

Environment

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Not Started

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions