microsoft / microsoft/mcp

CosmosDB Test Fixture should be dynamic and match bicep file

Open
#161 1 comment 0 reactions 0 assignees View on GitHub
engineering item server-Azure.Mcp test issue tools-CosmosDB
Dominant language
C#
Stars
3.7k
Forks
624
Avg merge
2d 20h
Merged PRs (30d)
220

Description

For the Cosmos test fixture where we populate the DB with dummy items, we should avoid having hardcoded names. Instead, we should retrieve the name of the DB and Container from a variable to ensure we're using the same one as the bicep files and post-scripts for the test resources.

See https://github.com/Azure/azure-mcp/pull/304#discussion_r2138974931

Contributor guide

Open the contributing guide

Research direction

Start with the Cosmos test fixture and review the linked pull request discussion for the existing hardcoded names. Trace the variables used by the bicep files and post-scripts, then update the fixture to use the same database and container names. Done means the dummy items target the resources defined for the test.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp
Domain
database, testing
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.