Skip to content

Commit

Permalink
Ignore Authorization dependency (#39980)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurMa1978 committed Nov 14, 2023
1 parent 8ba43b2 commit 236fac8
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 13 deletions.
11 changes: 11 additions & 0 deletions common/ManagementTestShared/Redesign/ManagementRecordedTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,17 @@ protected void IgnoreNetworkDependencyVersions()
});
}

protected void IgnoreAuthorizationDependencyVersions()
{
// Ignore the api-version of Authorization operations
UriRegexSanitizers.Add(new UriRegexSanitizer(
@"/providers\/Microsoft.Authorization\/(.*?)\?api-version=(?<group>[a-z0-9-]+)", "**"
)
{
GroupForReplace = "group"
});
}

protected void IgnoreKeyVaultDependencyVersions()
{
// Ignore the api-version of KeyVault operations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "net",
"TagPrefix": "net/devtestlabs/Azure.ResourceManager.DevTestLabs",
"Tag": "net/devtestlabs/Azure.ResourceManager.DevTestLabs_344ab0f377"
"Tag": "net/devtestlabs/Azure.ResourceManager.DevTestLabs_8829eb25c7"
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ public class DevTestLabsManagementTestBase : ManagementRecordedTestBase<DevTestL
protected DevTestLabsManagementTestBase(bool isAsync, RecordedTestMode mode)
: base(isAsync, mode)
{
IgnoreAuthorizationDependencyVersions();
}

protected DevTestLabsManagementTestBase(bool isAsync)
: base(isAsync)
{
IgnoreAuthorizationDependencyVersions();
}

[SetUp]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30309.148
# Visual Studio Version 17
VisualStudioVersion = 17.7.34221.43
MinimumVisualStudioVersion = 10.0.40219.1
Project("{6F2DAE7D-843A-4F6D-A575-9E4474A0FF72}") = "Azure.ResourceManager.RecoveryServicesBackup", "src\Azure.ResourceManager.RecoveryServicesBackup.csproj", "{A5ACC092-D59C-470F-9F9E-5FC249B28447}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.ResourceManager.RecoveryServicesBackup", "src\Azure.ResourceManager.RecoveryServicesBackup.csproj", "{A5ACC092-D59C-470F-9F9E-5FC249B28447}"
EndProject
Project("{6F2DAE7D-843A-4F6D-A575-9E4474A0FF72}") = "Azure.ResourceManager.RecoveryServicesBackup.Tests", "tests\Azure.ResourceManager.RecoveryServicesBackup.Tests.csproj", "{BA7D55C6-F677-4A24-A4F8-2EBB612C7EEA}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.ResourceManager.RecoveryServicesBackup.Tests", "tests\Azure.ResourceManager.RecoveryServicesBackup.Tests.csproj", "{BA7D55C6-F677-4A24-A4F8-2EBB612C7EEA}"
EndProject
Project("{6F2DAE7D-843A-4F6D-A575-9E4474A0FF72}") = "Azure.ResourceManager.RecoveryServicesBackup.Samples", "samples\Azure.ResourceManager.RecoveryServicesBackup.Samples.csproj", "{589C61C5-1D39-4994-94BA-D473401350C3}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.ResourceManager.RecoveryServicesBackup.Samples", "samples\Azure.ResourceManager.RecoveryServicesBackup.Samples.csproj", "{589C61C5-1D39-4994-94BA-D473401350C3}"
EndProject
Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {35AD42A6-3116-4A0F-AD64-5C681D0CB0ED}
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Expand Down Expand Up @@ -49,5 +43,23 @@ Global
{BA7D55C6-F677-4A24-A4F8-2EBB612C7EEA}.Release|x64.Build.0 = Release|Any CPU
{BA7D55C6-F677-4A24-A4F8-2EBB612C7EEA}.Release|x86.ActiveCfg = Release|Any CPU
{BA7D55C6-F677-4A24-A4F8-2EBB612C7EEA}.Release|x86.Build.0 = Release|Any CPU
{589C61C5-1D39-4994-94BA-D473401350C3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{589C61C5-1D39-4994-94BA-D473401350C3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{589C61C5-1D39-4994-94BA-D473401350C3}.Debug|x64.ActiveCfg = Debug|Any CPU
{589C61C5-1D39-4994-94BA-D473401350C3}.Debug|x64.Build.0 = Debug|Any CPU
{589C61C5-1D39-4994-94BA-D473401350C3}.Debug|x86.ActiveCfg = Debug|Any CPU
{589C61C5-1D39-4994-94BA-D473401350C3}.Debug|x86.Build.0 = Debug|Any CPU
{589C61C5-1D39-4994-94BA-D473401350C3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{589C61C5-1D39-4994-94BA-D473401350C3}.Release|Any CPU.Build.0 = Release|Any CPU
{589C61C5-1D39-4994-94BA-D473401350C3}.Release|x64.ActiveCfg = Release|Any CPU
{589C61C5-1D39-4994-94BA-D473401350C3}.Release|x64.Build.0 = Release|Any CPU
{589C61C5-1D39-4994-94BA-D473401350C3}.Release|x86.ActiveCfg = Release|Any CPU
{589C61C5-1D39-4994-94BA-D473401350C3}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {35AD42A6-3116-4A0F-AD64-5C681D0CB0ED}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "net",
"TagPrefix": "net/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup",
"Tag": "net/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup_6b115f5f54"
"Tag": "net/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup_a0dcd91671"
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ public class RecoveryServicesBackupManagementTestBase : ManagementRecordedTestBa
protected RecoveryServicesBackupManagementTestBase(bool isAsync, RecordedTestMode mode)
: base(isAsync, mode)
{
IgnoreAuthorizationDependencyVersions();
}

protected RecoveryServicesBackupManagementTestBase(bool isAsync)
: base(isAsync)
{
IgnoreAuthorizationDependencyVersions();
}

[SetUp]
Expand Down

0 comments on commit 236fac8

Please sign in to comment.