-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2532 from kirankumarkolli/master
InteractiveHive cluster type VM defaults to D13_v2
- Loading branch information
Showing
5 changed files
with
57 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...ResourceManagement/HDInsight/HDInsight.Tests/UnitTests/ClusterCreateDefaultVMTypeTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using Microsoft.Azure.Management.HDInsight; | ||
using Microsoft.Azure.Management.HDInsight.Models; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using Xunit; | ||
|
||
namespace HDInsight.Tests.UnitTests | ||
{ | ||
public class ClusterCreateDefaultVmTypeTests | ||
{ | ||
[Fact] | ||
public void TestDefaultVmTypes() | ||
{ | ||
AssertDefaultVmTypes("hadoop", "Standard_D3", "Standard_D3"); | ||
AssertDefaultVmTypes("spark", "Standard_D12", "Standard_D12"); | ||
AssertDefaultVmTypes("InteractiveHive", "Standard_D13_v2", "Standard_D13_v2"); | ||
AssertDefaultVmTypes("hbase", "Large", "Standard_D3"); | ||
} | ||
|
||
public void AssertDefaultVmTypes(string clusterType, string expectedheadNodeVmType, string expectedWorkerNodeVmType) | ||
{ | ||
var createParams = new ClusterCreateParameters() | ||
{ | ||
ClusterType = clusterType, | ||
}; | ||
|
||
Assert.Equal(expectedheadNodeVmType, ClusterOperations.GetHeadNodeSize(createParams)); | ||
Assert.Equal(expectedWorkerNodeVmType, ClusterOperations.GetWorkerNodeSize(createParams)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters