Skip to content

Commit 6e0fa7c

Browse files
committed
Fixing CR comments on ADL live test
1 parent 741a367 commit 6e0fa7c

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

src/ResourceManager/HDInsight/Commands.HDInsight.Test/ScenarioTests/DataLakeStoreScenarioTests.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ function Test-DataLakeStoreClusterCreate{
4848
$sshCred=New-Object System.Management.Automation.PSCredential($sshUser,$sshPasswd)
4949

5050
#execute
51-
$cluster = New-AzureRmHDInsightCluster -Location $locName -ResourceGroupName $rmGroup -ClusterType Hadoop -ClusterName $clusterName -ClusterSizeInNodes $clusterNodes -HttpCredential $credential -DefaultStorageAccountName "ypseastus.blob.core.windows.net" -DefaultStorageAccountKey $storageAccountKey -DefaultStorageContainer $clusterName -Version $version -SshCredential $sshCred -OSType Linux -ObjectId $objectId -CertificateFilePath $certFilePath -CertificatePassword $certPasswd
51+
$cluster = New-AzureRmHDInsightCluster -Location $locName -ResourceGroupName $rmGroup -ClusterType Hadoop `
52+
-ClusterName $clusterName -ClusterSizeInNodes $clusterNodes -HttpCredential $credential `
53+
-DefaultStorageAccountName "$saName.blob.core.windows.net" -DefaultStorageAccountKey $storageAccountKey `
54+
-DefaultStorageContainer $clusterName -Version $version -SshCredential $sshCred -OSType Linux `
55+
-ObjectId $objectId -CertificateFilePath $certFilePath -CertificatePassword $certPasswd
5256

5357
#assert
5458
Assert-NotNull $cluster

src/ResourceManager/HDInsight/Commands.HDInsight.Test/ScenarioTests/HDInsightScenarioTestsBase.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ protected HDInsightManagementClient GetHdInsightManagementClient()
5353
return TestBase.GetServiceClient<HDInsightManagementClient>(this.csmTestFactory);
5454
}
5555

56+
/// <summary>
57+
/// Runs the PowerShell test
58+
/// </summary>
59+
/// <param name="scripts">script to be executed</param>
5660
public void RunPsTest(params string[] scripts)
5761
{
5862
var callingClassType = TestUtilities.GetCallingClass(2);
@@ -68,6 +72,14 @@ public void RunPsTest(params string[] scripts)
6872
mockName);
6973
}
7074

75+
/// <summary>
76+
/// Runs the PowerShell test under mock undo context based on the test mode setting (Record|Playback)
77+
/// </summary>
78+
/// <param name="scriptBuilder">Script builder delegate</param>
79+
/// <param name="initialize">initialize action</param>
80+
/// <param name="cleanup">cleanup action</param>
81+
/// <param name="callingClassType">Calling class type</param>
82+
/// <param name="mockName">Mock Name</param>
7183
public void RunPsTestWorkflow(
7284
Func<string[]> scriptBuilder,
7385
Action<CSMTestEnvironmentFactory> initialize,

0 commit comments

Comments
 (0)