Skip to content

Commit 25b8cd1

Browse files
Support ignoring API versions of more ResourceManager resources when used as test dependencies (Azure#33882)
1 parent 35f4c3b commit 25b8cd1

File tree

363 files changed

+485
-430
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

363 files changed

+485
-430
lines changed

common/ManagementTestShared/Redesign/ManagementRecordedTestBase.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,24 +73,34 @@ private void Initialize()
7373

7474
private void IgnoreArmCoreDependencyVersions()
7575
{
76+
// Ignore the api-version of resource group operations
7677
UriRegexSanitizers.Add(new UriRegexSanitizer(
7778
@"/resourcegroups/[^/]+api-version=(?<group>[a-z0-9-]+)", "**"
7879
)
7980
{
8081
GroupForReplace = "group"
8182
});
83+
// Ignore the api-version of LRO query status operation for resource group deletion
8284
UriRegexSanitizers.Add(new UriRegexSanitizer(
8385
@"/subscriptions/[^/]+/operationresults/[^/]+api-version=(?<group>[a-z0-9-]+)", "**"
8486
)
8587
{
8688
GroupForReplace = "group"
8789
});
90+
// Ignore the api-version of TagResource operations
8891
UriRegexSanitizers.Add(new UriRegexSanitizer(
8992
@"/providers/Microsoft.Resources/tags/default\?api-version=(?<group>[a-z0-9-]+)", "**"
9093
)
9194
{
9295
GroupForReplace = "group"
9396
});
97+
// Ignore the api-version of the operation to query resource providers
98+
UriRegexSanitizers.Add(new UriRegexSanitizer(
99+
@"/providers/([^/]+)api-version=(?<group>[a-z0-9-]+)", "**"
100+
)
101+
{
102+
GroupForReplace = "group"
103+
});
94104
}
95105

96106
private ArmClient GetCleanupClient()

sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/tests/SessionRecords/ConfigurationStoreOperationTests/GetAvailableLocationsTest.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/tests/SessionRecords/ConfigurationStoreOperationTests/GetAvailableLocationsTestAsync.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/HciClusterOperationTests/SetTags(null).json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/HciClusterOperationTests/SetTags(null)Async.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/cdn/Azure.ResourceManager.Cdn/tests/SessionRecords/CdnWebApplicationFirewallPolicyOperationsTests/Update(null).json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/cdn/Azure.ResourceManager.Cdn/tests/SessionRecords/CdnWebApplicationFirewallPolicyOperationsTests/Update(null)Async.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/communication/Azure.ResourceManager.Communication/tests/SessionRecords/CommunicationServiceTests/AddTag(null).json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/communication/Azure.ResourceManager.Communication/tests/SessionRecords/CommunicationServiceTests/AddTag(null)Async.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/communication/Azure.ResourceManager.Communication/tests/SessionRecords/CommunicationServiceTests/RemoveTag(null).json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)