Skip to content

Commit

Permalink
Merge pull request #22419 from Azure/lnx/release-revert
Browse files Browse the repository at this point in the history
revert breaking change commit from release branch
  • Loading branch information
dolauli authored Jul 26, 2023
2 parents 327d097 + 12d693c commit 10a03f7
Show file tree
Hide file tree
Showing 18 changed files with 12 additions and 1,768 deletions.
2 changes: 1 addition & 1 deletion src/Compute/Compute.Test/Compute.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.Azure.Graph.RBAC" Version="3.4.0-preview" />
<PackageReference Include="Microsoft.Azure.Management.Compute" Version="61.0.0" />
<PackageReference Include="Microsoft.Azure.Management.Compute" Version="60.0.0" />
<PackageReference Include="Microsoft.Azure.Management.KeyVault" Version="4.0.0-preview.1" />
</ItemGroup>

Expand Down
7 changes: 0 additions & 7 deletions src/Compute/Compute.Test/ScenarioTests/DedicatedHostTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,5 @@ public void TestDedicatedHostRestart()
{
TestRunner.RunTestScript("Test-DedicatedHostRestart");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestDedicatedHostUpdateAndSize()
{
TestRunner.RunTestScript("Test-DedicatedHostUpdateAndSize");
}
}
}
44 changes: 0 additions & 44 deletions src/Compute/Compute.Test/ScenarioTests/DedicatedHostTests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -288,48 +288,4 @@ function Test-DedicatedHostRestart
# Cleanup
Clean-ResourceGroup $rgname
}
}


<#
.SYNOPSIS
Test Restart dedicated host Update and Size.
#>
function Test-DedicatedHostUpdateAndSize
{
# Setup
$rgname = Get-ComputeTestResourceName

try
{
# Common
# [string]$loc = Get-Location "Microsoft.Resources" "resourceGroups" "East US 2 EUAP";
# $loc = $loc.Replace(' ', '');
$loc = "eastus2euap";

New-AzResourceGroup -Name $rgname -Location $loc -Force;

$hostGroupName = $rgname + 'hostgroup';
New-AzHostGroup -ResourceGroupName $rgname -Name $hostGroupName -Location $loc -PlatformFaultDomain 1 -Zone "2" -Tag @{key1 = "val1"};

$hostGroup = Get-AzHostGroup -ResourceGroupName $rgname -Name $hostGroupName;
$hostName = $rgname + 'host';
New-AzHost -ResourceGroupName $rgname -HostGroupName $hostGroupName -Name $hostName -Location $loc -Sku "ESv3-Type1" -Tag @{key1 = "val2"};

$dedicatedHost = Get-AzHost -ResourceGroupName $rgname -HostGroupName $hostGroupName -Name $hostName;

# Restart the dedicated host
$hostSize = Get-AzHostSize -ResourceGroupName $rgname -HostGroupName $hostGroupName -Name $hostName;
Assert-NotNull $hostSize;

# Update DH
$dHUpdate = Update-AzHost -ResourceGroupName $rgname -HostGroupName $hostGroupName -Name $hostName -AutoReplaceOnFailure $false;
Assert-AreEqual $dHUpdate.AutoReplaceOnFailure $False ;

}
finally
{
# Cleanup
Clean-ResourceGroup $rgname
}
}
Loading

0 comments on commit 10a03f7

Please sign in to comment.