|
12 | 12 | // limitations under the License. |
13 | 13 | // ---------------------------------------------------------------------------------- |
14 | 14 |
|
| 15 | +using System; |
| 16 | +using System.Collections.Generic; |
| 17 | +using System.IO; |
| 18 | +using System.Linq; |
| 19 | +using System.Net.Http; |
| 20 | +using System.Net.Http.Headers; |
15 | 21 | using Microsoft.Azure.Commands.Common.Authentication; |
16 | 22 | using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Components; |
17 | 23 | using Microsoft.Azure.Commands.ResourceManager.Cmdlets.Extensions; |
|
21 | 27 | using Microsoft.Azure.Management.Authorization; |
22 | 28 | using Microsoft.Azure.Management.ResourceManager; |
23 | 29 | using Microsoft.Azure.Test.HttpRecorder; |
| 30 | +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; |
24 | 31 | using Microsoft.WindowsAzure.Commands.Common; |
25 | 32 | using Microsoft.WindowsAzure.Commands.ScenarioTest; |
26 | | -using LegacyTest = Microsoft.Azure.Test; |
27 | 33 | using LegacyRMClient = Microsoft.Azure.Management.Resources; |
| 34 | +using LegacyTest = Microsoft.Azure.Test; |
28 | 35 | using TestEnvironmentFactory = Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestEnvironmentFactory; |
29 | 36 | using TestUtilities = Microsoft.Rest.ClientRuntime.Azure.TestFramework.TestUtilities; |
30 | | -using System; |
31 | | -using System.Collections.Generic; |
32 | | -using System.Linq; |
33 | | -using System.Net.Http; |
34 | | -using System.Net.Http.Headers; |
35 | | -using Microsoft.Rest.ClientRuntime.Azure.TestFramework; |
36 | 37 |
|
37 | 38 |
|
38 | 39 | namespace Microsoft.Azure.Commands.Resources.Test.ScenarioTests |
@@ -106,6 +107,7 @@ public void RunPsTestWorkflow( |
106 | 107 | providersToIgnore.Add("Microsoft.Azure.Management.ResourceManager.ResourceManagementClient", "2016-02-01"); |
107 | 108 | providersToIgnore.Add("Microsoft.Azure.Management.Resources.ResourceManagementClient", "2016-02-01"); |
108 | 109 | HttpMockServer.Matcher = new PermissiveRecordMatcherWithApiExclusion(true, d, providersToIgnore); |
| 110 | + HttpMockServer.RecordsDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "SessionRecords"); |
109 | 111 |
|
110 | 112 | using (MockContext context = MockContext.Start(callingClassType, mockName)) |
111 | 113 | { |
|
0 commit comments