Skip to content

Commit a8f871f

Browse files
committed
Fix VM Plan2 Test
1 parent a9d7cc1 commit a8f871f

File tree

2 files changed

+354
-3681
lines changed

2 files changed

+354
-3681
lines changed

src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VirtualMachineTests.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -996,8 +996,9 @@ function Test-VirtualMachinePlan2
996996
$p.Plan.Product = $plan.Product;
997997
$p.Plan.PromotionCode = $null;
998998
$p.OSProfile.WindowsConfiguration = $null;
999-
1000-
New-AzureVM -ResourceGroupName $rgname -Location $loc -Name $vmname -VM $p;
999+
1000+
# Negative Tests on non-purchased Plan
1001+
Assert-ThrowsContains { New-AzureVM -ResourceGroupName $rgname -Location $loc -Name $vmname -VM $p; } "Legal terms have not been accepted for this item on this subscription";
10011002
}
10021003
finally
10031004
{

0 commit comments

Comments
 (0)