Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

revert breaking change commit from release branch #22419

Merged
merged 3 commits into from
Jul 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading