Skip to content

Commit 7d92474

Browse files
committed
fix for hdinsight tests2
1 parent fc2eaa0 commit 7d92474

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ServiceManagement/HDInsight/Commands.HDInsight.Test/Models/Utilities/IntegrationTestBase.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
using Microsoft.WindowsAzure.Commands.Test.Utilities.HDInsight.PowerShellTestAbstraction.Concretes;
2727
using Microsoft.WindowsAzure.Commands.Test.Utilities.HDInsight.PowerShellTestAbstraction.Interfaces;
2828
using Microsoft.WindowsAzure.Commands.Test.Utilities.HDInsight.Simulators;
29+
using Microsoft.WindowsAzure.Commands.Utilities.Common;
2930
using Microsoft.WindowsAzure.Management.HDInsight;
3031
using Microsoft.WindowsAzure.Management.HDInsight.Cmdlet.Commands.BaseCommandInterfaces;
3132
using Microsoft.WindowsAzure.Management.HDInsight.Cmdlet.Commands.CommandImplementations;
@@ -158,7 +159,9 @@ public static void TestRunSetup()
158159
cmdletRunManager.RegisterType<IAzureHDInsightClusterManagementClientFactory, AzureHDInsightClusterManagementClientSimulatorFactory>();
159160
cmdletRunManager.RegisterType<IAzureHDInsightJobSubmissionClientFactory, AzureHDInsightJobSubmissionClientSimulatorFactory>();
160161
var testManager = new IntegrationTestManager();
161-
AzureSession.DataStore = new DiskDataStore();
162+
AzureSession.DataStore = new MemoryDataStore();
163+
var profile = new AzureProfile(Path.Combine(AzureSession.ProfileDirectory, AzureSession.ProfileFile));
164+
AzurePSCmdlet.CurrentProfile = profile;
162165
TestCredentials = testManager.GetCredentials("default");
163166
if (TestCredentials == null)
164167
{

0 commit comments

Comments
 (0)