Skip to content

Commit 1ff98ff

Browse files
dumahesh-msftEvgenyAgafonchikov
authored andcommitted
Fix load balancer zones test.
1 parent 9b2f66c commit 1ff98ff

File tree

2 files changed

+470
-214
lines changed

2 files changed

+470
-214
lines changed

src/ResourceManager/Network/Commands.Network.Test/ScenarioTests/LoadBalancerTests.ps1

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1299,9 +1299,9 @@ function Test-LoadBalancerInboundNatPoolConfigCRUD-InternalLB
12991299
$domainNameLabel = Get-ResourceName
13001300
$lbName = Get-ResourceName
13011301
$frontendName = Get-ResourceName
1302-
$rglocation = Get-ProviderLocation ResourceManagement
1302+
$rglocation = "West US"
13031303
$resourceTypeParent = "Microsoft.Network/loadBalancers"
1304-
$location = Get-ProviderLocation $resourceTypeParent
1304+
$location = "West US"
13051305

13061306
try
13071307
{
@@ -1391,9 +1391,9 @@ function Test-LoadBalancerInboundNatPoolConfigCRUD-PublicLB
13911391
$lbName = Get-ResourceName
13921392
$frontendName = Get-ResourceName
13931393
$inboundNatPoolName = Get-ResourceName
1394-
$rglocation = Get-ProviderLocation ResourceManagement
1394+
$rglocation = "West US"
13951395
$resourceTypeParent = "Microsoft.Network/loadBalancers"
1396-
$location = Get-ProviderLocation $resourceTypeParent
1396+
$location = "West US"
13971397

13981398
try
13991399
{
@@ -2251,8 +2251,9 @@ function Test-LoadBalancerZones
22512251

22522252
$zones = "1";
22532253
$rglocation = Get-ProviderLocation ResourceManagement
2254+
# TODO: replace hardcoded location
22542255
$resourceTypeParent = "Microsoft.Network/loadBalancers"
2255-
$location = Get-ProviderLocation $resourceTypeParent
2256+
$location = "centralus";
22562257

22572258
try
22582259
{

0 commit comments

Comments
 (0)