-
Notifications
You must be signed in to change notification settings - Fork 343
Migrate Cosmos to recordings #1402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
c792762
4e56e0e
65f6e7e
5fc2268
e142b81
9cdf6aa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -4,14 +4,28 @@ | |||||||||||||
| using System.Text.Json; | ||||||||||||||
| using Azure.Mcp.Tests; | ||||||||||||||
| using Azure.Mcp.Tests.Client; | ||||||||||||||
| using Azure.Mcp.Tests.Client.Helpers; | ||||||||||||||
| using Azure.Mcp.Tests.Generated.Models; | ||||||||||||||
| using Xunit; | ||||||||||||||
|
|
||||||||||||||
| namespace Azure.Mcp.Tools.Cosmos.LiveTests; | ||||||||||||||
|
|
||||||||||||||
| public class CosmosCommandTests(ITestOutputHelper output) | ||||||||||||||
| : CommandTestsBase(output), | ||||||||||||||
| IClassFixture<CosmosDbFixture> | ||||||||||||||
| public class CosmosCommandTests(ITestOutputHelper output, TestProxyFixture fixture) : RecordedCommandTestsBase(output, fixture) | ||||||||||||||
| { | ||||||||||||||
| protected override RecordingOptions? RecordingOptions => new() | ||||||||||||||
| { | ||||||||||||||
| HandleRedirects = false | ||||||||||||||
| }; | ||||||||||||||
|
|
||||||||||||||
| /// <summary> | ||||||||||||||
| /// 3493 = $..name | ||||||||||||||
| /// </summary> | ||||||||||||||
| public override List<string> DisabledDefaultSanitizers => [.. base.DisabledDefaultSanitizers, "3493"]; | ||||||||||||||
|
Comment on lines
+21
to
+23
|
||||||||||||||
| /// 3493 = $..name | |
| /// </summary> | |
| public override List<string> DisabledDefaultSanitizers => [.. base.DisabledDefaultSanitizers, "3493"]; | |
| /// AZSDK3493 = $..name | |
| /// </summary> | |
| public override List<string> DisabledDefaultSanitizers => [.. base.DisabledDefaultSanitizers, "AZSDK3493"]; |
Copilot
AI
Dec 19, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The null-forgiving operator (!) is unnecessary here. The variable 'containerName' is declared as a non-nullable string, and there's an assertion on line 152 that verifies it's not null or empty. The null-forgiving operator should be removed for cleaner code.
| { "container", containerName! } | |
| { "container", containerName } |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| { | ||
| "AssetsRepo": "Azure/azure-sdk-assets", | ||
| "AssetsRepoPrefixPath": "", | ||
| "TagPrefix": "Azure.Mcp.Tools.Cosmos.LiveTests", | ||
| "Tag": "Azure.Mcp.Tools.Cosmos.LiveTests_3821fa67e8" | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The sanitizer ID should be "AZSDK3493" instead of "3493". All other tools in the codebase consistently use the "AZSDK" prefix for this sanitizer (e.g., AcrCommandTests, AppConfigCommandTests, QuotaCommandTests, SearchCommandTests, SqlCommandTests, SignalRCommandTests).