Skip to content

[BUG] Should_list_appconfig_accounts live test fails to find appconfig account #1949

@hallipr

Description

@hallipr

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Untriaged

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions