Skip to content

Commit 818b741

Browse files
committed
Setting SessionRecords directory for test framework
1 parent 681ead0 commit 818b741

File tree

1 file changed

+2
-0
lines changed
  • src/ResourceManager/TrafficManager/Commands.TrafficManager2.Test/ScenarioTests

1 file changed

+2
-0
lines changed

src/ResourceManager/TrafficManager/Commands.TrafficManager2.Test/ScenarioTests/TestController.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ namespace Microsoft.Azure.Commands.TrafficManager.Test.ScenarioTests
2626
using Microsoft.Azure.Test;
2727
using Microsoft.WindowsAzure.Commands.ScenarioTest;
2828
using System;
29+
using System.IO;
2930
using System.Linq;
3031
using WindowsAzure.Commands.Test.Utilities.Common;
3132

@@ -106,6 +107,7 @@ public void RunPsTestWorkflow(
106107
providersToIgnore.Add("Microsoft.Azure.Management.Resources.ResourceManagementClient", "2016-02-01");
107108
HttpMockServer.Matcher = new PermissiveRecordMatcherWithApiExclusion(true, d, providersToIgnore);
108109

110+
HttpMockServer.RecordsDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "SessionRecords");
109111
using (RestTestFramework.MockContext context = RestTestFramework.MockContext.Start(callingClassType, mockName))
110112
{
111113
this.csmTestFactory = new CSMTestEnvironmentFactory();

0 commit comments

Comments
 (0)