-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
160 additions
and
117 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
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
160 changes: 80 additions & 80 deletions
160
...nagement/AzureStackAdmin/AzureStackManagement/Generated/ProviderRegistrationOperations.cs
Large diffs are not rendered by default.
Oops, something went wrong.
24 changes: 12 additions & 12 deletions
24
...anagement/AzureStackAdmin/AzureStackManagement/Microsoft.AzureStack.Management.nuget.proj
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<ItemGroup> | ||
<!-- | ||
Microsoft.AzureStack.Management | ||
--> | ||
<SdkNuGetPackage Include="Microsoft.AzureStack.Management"> | ||
<PackageVersion>0.9.6-preview</PackageVersion> | ||
<Folder>$(MSBuildThisFileDirectory)</Folder> | ||
</SdkNuGetPackage> | ||
</ItemGroup> | ||
</Project> | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<ItemGroup> | ||
<!-- | ||
Microsoft.AzureStack.Management | ||
--> | ||
<SdkNuGetPackage Include="Microsoft.AzureStack.Management"> | ||
<PackageVersion>0.10.1-preview</PackageVersion> | ||
<Folder>$(MSBuildThisFileDirectory)</Folder> | ||
</SdkNuGetPackage> | ||
</ItemGroup> | ||
</Project> |
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
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