Skip to content

Commit 86b1997

Browse files
committed
Fix indent in test
1 parent bdda3d5 commit 86b1997

File tree

3 files changed

+31
-31
lines changed

3 files changed

+31
-31
lines changed

src/ResourceManager/AnalysisServices/Commands.AnalysisServices.Test/ScenarioTests/AsTests.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ public void TestAnalysisServicesServerLoginWithSPN()
9494
NewInstance.RunPsTest("Test-AnalysisServicesServerLoginWithSPN");
9595
}
9696

97-
[Fact]
98-
[Trait(Category.RunType, Category.LiveOnly)]
99-
public void TestAnalysisServicesServerGateway()
100-
{
101-
NewInstance.RunPsTest("Test-AnalysisServicesServerGateway");
102-
}
97+
[Fact]
98+
[Trait(Category.RunType, Category.LiveOnly)]
99+
public void TestAnalysisServicesServerGateway()
100+
{
101+
NewInstance.RunPsTest("Test-AnalysisServicesServerGateway");
102+
}
103103

104104
}
105105
}

src/ResourceManager/AnalysisServices/Commands.AnalysisServices.Test/ScenarioTests/AsTests.ps1

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -619,23 +619,23 @@ Tests Analysis Services server lifecycle Failure scenarios (Create, Update, Get
619619
#>
620620
function Test-AnalysisServicesServerGateway
621621
{
622-
try
623-
{
624-
625-
# Updating server
626-
$tagsToUpdate = @{"TestTag" = "TestUpdate"}
627-
#$serverUpdated = Set-AzureRmAnalysisServicesServer -ResourceGroupName $resourceGroupName -Name $serverName -Tag $tagsToUpdate -GatewayName 'azsdktest' -GatewayResourceGroupName 'TestRG' -GatewaySubscriptionId 'ba59a556-5034-4bbb-80b4-4c37cf1083e9' -PassThru
622+
try
623+
{
624+
625+
# Updating server
626+
$tagsToUpdate = @{"TestTag" = "TestUpdate"}
627+
#$serverUpdated = Set-AzureRmAnalysisServicesServer -ResourceGroupName $resourceGroupName -Name $serverName -Tag $tagsToUpdate -GatewayName 'azsdktest' -GatewayResourceGroupName 'TestRG' -GatewaySubscriptionId 'ba59a556-5034-4bbb-80b4-4c37cf1083e9' -PassThru
628628
$serverUpdated = Set-AzureRmAnalysisServicesServer -ResourceGroupName 'TestRG' -Name 'azsdktest0309' -Tag $tagsToUpdate -DisassociateGateway -PassThru
629-
Assert-NotNull $serverUpdated.Tag "Tag do not exists"
630-
Assert-NotNull $serverUpdated.Tag["TestTag"] "The updated tag 'TestTag' does not exist"
631-
Assert-AreEqual $serverUpdated.AsAdministrators.Count 2
632-
Assert-AreEqual 1 $serverUpdated.Sku.Capacity
629+
Assert-NotNull $serverUpdated.Tag "Tag do not exists"
630+
Assert-NotNull $serverUpdated.Tag["TestTag"] "The updated tag 'TestTag' does not exist"
631+
Assert-AreEqual $serverUpdated.AsAdministrators.Count 2
632+
Assert-AreEqual 1 $serverUpdated.Sku.Capacity
633633

634-
}
635-
finally
636-
{
637-
# cleanup the resource group that was used in case it still exists. This is a best effort task, we ignore failures here.
638-
Invoke-HandledCmdlet -Command {Remove-AzureRmAnalysisServicesServer -ResourceGroupName $resourceGroupName -Name $serverName -ErrorAction SilentlyContinue} -IgnoreFailures
639-
Invoke-HandledCmdlet -Command {Remove-AzureRmResourceGroup -Name $resourceGroupName -ErrorAction SilentlyContinue} -IgnoreFailures
640-
}
634+
}
635+
finally
636+
{
637+
# cleanup the resource group that was used in case it still exists. This is a best effort task, we ignore failures here.
638+
Invoke-HandledCmdlet -Command {Remove-AzureRmAnalysisServicesServer -ResourceGroupName $resourceGroupName -Name $serverName -ErrorAction SilentlyContinue} -IgnoreFailures
639+
Invoke-HandledCmdlet -Command {Remove-AzureRmResourceGroup -Name $resourceGroupName -ErrorAction SilentlyContinue} -IgnoreFailures
640+
}
641641
}

src/ResourceManager/AnalysisServices/Commands.AnalysisServices/Models/ServerSku.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ public class ServerSku
1515

1616
public int Capacity { get; set; }
1717

18-
internal static ServerSku FromResourceSku(ResourceSku resourceSku)
19-
{
20-
return new ServerSku()
21-
{
22-
Name = resourceSku.Name,
23-
Tier = resourceSku.Tier,
24-
Capacity = resourceSku.Capacity == null ? 1 : resourceSku.Capacity.Value
25-
};
18+
internal static ServerSku FromResourceSku(ResourceSku resourceSku)
19+
{
20+
return new ServerSku()
21+
{
22+
Name = resourceSku.Name,
23+
Tier = resourceSku.Tier,
24+
Capacity = resourceSku.Capacity == null ? 1 : resourceSku.Capacity.Value
25+
};
2626
}
2727
}
2828
}

0 commit comments

Comments
 (0)