File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/ServiceManagement/HDInsight/Commands.HDInsight.Test/Models/Utilities Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 26
26
using Microsoft . WindowsAzure . Commands . Test . Utilities . HDInsight . PowerShellTestAbstraction . Concretes ;
27
27
using Microsoft . WindowsAzure . Commands . Test . Utilities . HDInsight . PowerShellTestAbstraction . Interfaces ;
28
28
using Microsoft . WindowsAzure . Commands . Test . Utilities . HDInsight . Simulators ;
29
+ using Microsoft . WindowsAzure . Commands . Utilities . Common ;
29
30
using Microsoft . WindowsAzure . Management . HDInsight ;
30
31
using Microsoft . WindowsAzure . Management . HDInsight . Cmdlet . Commands . BaseCommandInterfaces ;
31
32
using Microsoft . WindowsAzure . Management . HDInsight . Cmdlet . Commands . CommandImplementations ;
@@ -158,7 +159,9 @@ public static void TestRunSetup()
158
159
cmdletRunManager . RegisterType < IAzureHDInsightClusterManagementClientFactory , AzureHDInsightClusterManagementClientSimulatorFactory > ( ) ;
159
160
cmdletRunManager . RegisterType < IAzureHDInsightJobSubmissionClientFactory , AzureHDInsightJobSubmissionClientSimulatorFactory > ( ) ;
160
161
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 ;
162
165
TestCredentials = testManager . GetCredentials ( "default" ) ;
163
166
if ( TestCredentials == null )
164
167
{
You can’t perform that action at this time.
0 commit comments