|
24 | 24 | using Microsoft.WindowsAzure.Commands.ScenarioTest;
|
25 | 25 | using TestEnvironmentFactory = Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestEnvironmentFactory;
|
26 | 26 | using TestUtilities = Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities;
|
| 27 | +using System.Collections.Generic; |
27 | 28 |
|
28 | 29 | namespace Microsoft.Azure.Commands.ContainerRegistry.Test.ScenarioTests
|
29 | 30 | {
|
@@ -63,6 +64,14 @@ public void RunPowerShellTest(params string[] scripts)
|
63 | 64 | var callingClassType = TestUtilities.GetCallingClass(2);
|
64 | 65 | var mockName = TestUtilities.GetCurrentMethodName(2);
|
65 | 66 |
|
| 67 | + Dictionary<string, string> d = new Dictionary<string, string>(); |
| 68 | + d.Add("Microsoft.Resources", null); |
| 69 | + d.Add("Microsoft.Features", null); |
| 70 | + d.Add("Microsoft.Authorization", null); |
| 71 | + d.Add("Microsoft.Compute", null); |
| 72 | + var providersToIgnore = new Dictionary<string, string>(); |
| 73 | + providersToIgnore.Add("Microsoft.Azure.Management.Resources.ResourceManagementClient", "2016-02-01"); |
| 74 | + HttpMockServer.Matcher = new PermissiveRecordMatcherWithApiExclusion(true, d, providersToIgnore); |
66 | 75 | HttpMockServer.RecordsDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "SessionRecords");
|
67 | 76 | using (MockContext context = MockContext.Start(callingClassType, mockName))
|
68 | 77 | {
|
|
0 commit comments