microsoft / microsoft/mcp

[BUG] Should_list_appconfig_accounts live test fails to find appconfig account

Open
#1,949 2 comments 0 reactions 1 assignee Claimed by @avanigupta View on GitHub
bug needs-team-attention server-Azure.Mcp tools-AppConfig
Dominant language
C#
Stars
3.7k
Forks
624
Avg merge
2d 20h
Merged PRs (30d)
220

Description

### Describe the bug

Our live test for `appconfig_account_list` asserts that the array of returned appconfig accounts contains one with a name matching our test run's "ResourceBaseName". Plenty of resource names are returned in the list, but the resource we just deployed doesn't appear to be in it.

https://github.com/Microsoft/mcp/blob/main/tools/Azure.Mcp.Tools.AppConfig/tests/Azure.Mcp.Tools.AppConfig.LiveTests/AppConfigCommandTests.cs#L68

### Expected behavior

The test passes

### Actual behavior

The test fails to find a resource with a name matching our ResourceBaseName

### Reproduction Steps

Run `mcp - pullrequest - live` or `mcp - Azure.Mcp.Server` with live tests enabled.

see:
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5969082&view=ms.vss-test-web.build-test-results-tab&runId=60094204&resultId=100005&paneView=debug

The test failed with:
```
Assert.Contains() Failure: Filter not matched in collection
Collection: [{"name":" <5 or 6 long json entries> ···]
```
Maybe we're getting a paged result?

### Environment

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.