File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
src/ResourceManager/HDInsight/Commands.HDInsight.Test/ScenarioTests Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,11 @@ function Test-DataLakeStoreClusterCreate{
48
48
$sshCred = New-Object System.Management.Automation.PSCredential($sshUser , $sshPasswd )
49
49
50
50
# 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
52
56
53
57
# assert
54
58
Assert-NotNull $cluster
Original file line number Diff line number Diff line change @@ -53,6 +53,10 @@ protected HDInsightManagementClient GetHdInsightManagementClient()
53
53
return TestBase . GetServiceClient < HDInsightManagementClient > ( this . csmTestFactory ) ;
54
54
}
55
55
56
+ /// <summary>
57
+ /// Runs the PowerShell test
58
+ /// </summary>
59
+ /// <param name="scripts">script to be executed</param>
56
60
public void RunPsTest ( params string [ ] scripts )
57
61
{
58
62
var callingClassType = TestUtilities . GetCallingClass ( 2 ) ;
@@ -68,6 +72,14 @@ public void RunPsTest(params string[] scripts)
68
72
mockName ) ;
69
73
}
70
74
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>
71
83
public void RunPsTestWorkflow (
72
84
Func < string [ ] > scriptBuilder ,
73
85
Action < CSMTestEnvironmentFactory > initialize ,
You can’t perform that action at this time.
0 commit comments