Skip to content

Commit 0ed3259

Browse files
committed
update tests
1 parent 93d1f06 commit 0ed3259

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ function setup_image_and_disks
238238
239239
# Image Reference;
240240
$vmconfig.StorageProfile.SourceImage = $null;
241-
$imgRef = Get-DefaultCRPImage;
241+
$imgRef = Get-DefaultCRPImage -loc $loc;
242242
$vmconfig = ($imgRef | Set-AzureVMSourceImage -VM $vmconfig);
243243
244244
# Do not add any data disks

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ function Test-VirtualMachineSizeAndUsage
453453

454454
# Image Reference;
455455
$p.StorageProfile.SourceImage = $null;
456-
$imgRef = Get-DefaultCRPImage;
456+
$imgRef = Get-DefaultCRPImage -loc $loc;
457457
$p = Set-AzureVMSourceImage -VM $p -PublisherName $imgRef.PublisherName -Offer $imgRef.Offer -Skus $imgRef.Skus -Version $imgRef.Version;
458458
Assert-NotNull $p.StorageProfile.ImageReference;
459459
Assert-Null $p.StorageProfile.SourceImageId;
@@ -619,7 +619,7 @@ function Test-VirtualMachinePIRv2
619619

620620
# Image Reference;
621621
$p.StorageProfile.SourceImage = $null;
622-
$imgRef = Get-DefaultCRPImage;
622+
$imgRef = Get-DefaultCRPImage -loc $loc;
623623
$p = ($imgRef | Set-AzureVMSourceImage -VM $p);
624624
Assert-NotNull $p.StorageProfile.ImageReference;
625625
Assert-Null $p.StorageProfile.SourceImageId;
@@ -729,7 +729,7 @@ function Test-VirtualMachineCapture
729729

730730
# Image Reference;
731731
$p.StorageProfile.SourceImage = $null;
732-
$imgRef = Get-DefaultCRPImage;
732+
$imgRef = Get-DefaultCRPImage -loc $loc;
733733
$p = ($imgRef | Set-AzureVMSourceImage -VM $p);
734734

735735
# TODO: Remove Data Disks for now
@@ -824,7 +824,7 @@ function Test-VirtualMachineDataDisk
824824

825825
# Image Reference;
826826
$p.StorageProfile.SourceImage = $null;
827-
$imgRef = Get-DefaultCRPImage;
827+
$imgRef = Get-DefaultCRPImage -loc $loc;
828828
$p = ($imgRef | Set-AzureVMSourceImage -VM $p);
829829

830830
# Negative Tests on A0 Size + 2 Data Disks
@@ -900,7 +900,7 @@ function Test-VirtualMachinePlan
900900

901901
# Image Reference;
902902
$p.StorageProfile.SourceImage = $null;
903-
$imgRef = Get-DefaultCRPImage;
903+
$imgRef = Get-DefaultCRPImage -loc $loc;
904904
$p = ($imgRef | Set-AzureVMSourceImage -VM $p);
905905

906906
$plan = Get-ComputeTestResourceName;
@@ -1064,7 +1064,7 @@ function Test-VirtualMachineTags
10641064

10651065
# Image Reference;
10661066
$p.StorageProfile.SourceImage = $null;
1067-
$imgRef = Get-DefaultCRPImage;
1067+
$imgRef = Get-DefaultCRPImage -loc $loc;
10681068
$p = ($imgRef | Set-AzureVMSourceImage -VM $p);
10691069

10701070
# Test Tags

0 commit comments

Comments
 (0)