Skip to content

Commit 75ae80d

Browse files
committed
Add location parameter to virtual machine test
1 parent 527fb0d commit 75ae80d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public partial class VirtualMachineTests
2323
[Trait(Category.AcceptanceType, Category.CheckIn)]
2424
public void TestVirtualMachine()
2525
{
26-
ComputeTestController.NewInstance.RunPsTest("Test-VirtualMachine");
26+
ComputeTestController.NewInstance.RunPsTest(@"Test-VirtualMachine $null");
2727
}
2828

2929
[Fact]

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,17 @@ Test Virtual Machines
1818
#>
1919
function Test-VirtualMachine
2020
{
21+
param ($loc)
2122
# Setup
2223
$rgname = Get-ComputeTestResourceName
2324

2425
try
2526
{
2627
# Common
27-
$loc = Get-ComputeVMLocation;
28+
if ($loc -eq $null)
29+
{
30+
$loc = Get-ComputeVMLocation;
31+
}
2832
New-AzureRmResourceGroup -Name $rgname -Location $loc -Force;
2933

3034
# VM Profile & Hardware

0 commit comments

Comments
 (0)