Skip to content

Commit 46711cd

Browse files
author
Shefali
committed
building
1 parent 3034441 commit 46711cd

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

src/ResourceManager/HDInsight/Commands.HDInsight.Test/Commands.HDInsight.Test.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@
150150
</ItemGroup>
151151
<ItemGroup>
152152
<Compile Include="HDInsightTestBase.cs" />
153-
<None Include="app.config" />
154153
<None Include="ScenarioTests\HDInsightConfigurationTests.ps1">
155154
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
156155
</None>

src/ResourceManager/HDInsight/Commands.HDInsight.Test/UnitTests/GetClusterTests.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public void CanGetHDInsightCluster()
5454
ClusterState = "Running",
5555
ClusterDefinition = new ClusterDefinition
5656
{
57-
ClusterType = HDInsightClusterType.Hadoop
57+
ClusterType = "Hadoop"
5858
},
5959
QuotaInfo = new QuotaInfo
6060
{
@@ -95,7 +95,7 @@ public void CanListHDInsightClustersInRG()
9595
ClusterState = "Running",
9696
ClusterDefinition = new ClusterDefinition
9797
{
98-
ClusterType = HDInsightClusterType.Hadoop
98+
ClusterType = "Hadoop"
9999
},
100100
QuotaInfo = new QuotaInfo
101101
{
@@ -116,7 +116,7 @@ public void CanListHDInsightClustersInRG()
116116
ClusterState = "Running",
117117
ClusterDefinition = new ClusterDefinition
118118
{
119-
ClusterType = HDInsightClusterType.Hadoop
119+
ClusterType = "Hadoop"
120120
},
121121
QuotaInfo = new QuotaInfo
122122
{
@@ -163,7 +163,7 @@ public void CanListHDInsightClusters()
163163
ClusterState = "Running",
164164
ClusterDefinition = new ClusterDefinition
165165
{
166-
ClusterType = HDInsightClusterType.Hadoop
166+
ClusterType = "Hadoop"
167167
},
168168
QuotaInfo = new QuotaInfo
169169
{
@@ -184,7 +184,7 @@ public void CanListHDInsightClusters()
184184
ClusterState = "Running",
185185
ClusterDefinition = new ClusterDefinition
186186
{
187-
ClusterType = HDInsightClusterType.Hadoop
187+
ClusterType = "Hadoop"
188188
},
189189
QuotaInfo = new QuotaInfo
190190
{

src/ResourceManager/HDInsight/Commands.HDInsight.Test/UnitTests/NewClusterTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public void CanCreateNewHDInsightCluster()
6767
ClusterState = "Running",
6868
ClusterDefinition = new ClusterDefinition
6969
{
70-
ClusterType = HDInsightClusterType.Hadoop
70+
ClusterType = "Hadoop"
7171
},
7272
QuotaInfo = new QuotaInfo
7373
{

src/ResourceManager/HDInsight/Commands.HDInsight.Test/UnitTests/ResizeClusterTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public void CanResizeCluster()
5656
ClusterState = "Running",
5757
ClusterDefinition = new ClusterDefinition
5858
{
59-
ClusterType = HDInsightClusterType.Hadoop
59+
ClusterType = "Hadoop"
6060
},
6161
QuotaInfo = new QuotaInfo
6262
{

src/ResourceManager/HDInsight/Commands.HDInsight/Commands.HDInsight.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@
9191
<Link>AzureRM.HDInsight.psd1</Link>
9292
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
9393
</None>
94-
<None Include="app.config" />
9594
<None Include="Microsoft.Azure.Commands.HDInsight.dll-help.psd1">
9695
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
9796
</None>

src/ResourceManager/HDInsight/Commands.HDInsight/Models/Management/AzureHDInsightCluster.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ public AzureHDInsightCluster(Cluster cluster)
2929
ClusterVersion = cluster.Properties.ClusterVersion;
3030
OperatingSystemType = cluster.Properties.OperatingSystemType;
3131
ClusterState = cluster.Properties.ClusterState;
32-
ClusterType = cluster.Properties.ClusterDefinition.ClusterType;
32+
HDInsightClusterType type;
33+
Enum.TryParse(cluster.Properties.ClusterDefinition.ClusterType, out type);
34+
ClusterType = type;
3335
CoresUsed = cluster.Properties.QuotaInfo.CoresUsed;
3436
var httpEndpoint =
3537
cluster.Properties.ConnectivityEndpoints.FirstOrDefault(c => c.Name.Equals("HTTPS", StringComparison.OrdinalIgnoreCase));

0 commit comments

Comments
 (0)