Skip to content

Commit 40d9f02

Browse files
committed
Fixing webapps end to end tests Test-SetWebApp
1 parent 6b4f98a commit 40d9f02

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tools/InstallationTests/NetcoreTests/Websites/WebAppTests.ps1

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -542,8 +542,8 @@ function Test-SetWebApp
542542
$rgname = Get-ResourceGroupName
543543
$webAppName = Get-WebsiteName
544544
$location = Get-Location
545-
$appServicePlanName1 = Get-WebHostPlanName
546-
$appServicePlanName2 = Get-WebHostPlanName
545+
$appServicePlanName1 = (Get-WebHostPlanName) + "One"
546+
$appServicePlanName2 = (Get-WebHostPlanName) + "Two"
547547
$tier1 = "Shared"
548548
$tier2 = "Standard"
549549
$apiversion = "2015-08-01"
@@ -586,9 +586,8 @@ function Test-SetWebApp
586586
# set app settings and connection strings
587587
$appSettings = @{ "setting1" = "valueA"; "setting2" = "valueB"}
588588
$connectionStrings = @{ connstring1 = @{ Type="MySql"; Value="string value 1"}; connstring2 = @{ Type = "SQLAzure"; Value="string value 2"}}
589-
590589
$webApp = Set-AzureRmWebApp -ResourceGroupName $rgname -Name $webAppName -AppSettings $appSettings -ConnectionStrings $connectionStrings -NumberofWorkers $capacity
591-
590+
592591
# Assert
593592
Assert-AreEqual $webAppName $webApp.Name
594593
Assert-AreEqual $appSettings.Keys.Count $webApp.SiteConfig.AppSettings.Count

0 commit comments

Comments
 (0)