Skip to content

Commit c7e16b5

Browse files
author
Hao Chen
committed
Updated webapp slot test.
1 parent b142721 commit c7e16b5

File tree

3 files changed

+28
-14
lines changed

3 files changed

+28
-14
lines changed

examples/webapp-management/02-WebAppSlot.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ pingwebapp() {
1010
#setup
1111
printf "\nSetup: Creating a new resource group: %s at location: %s.\n" "$groupName" "$location"
1212

13-
appName1=`randomName testweb`
14-
appName2=`randomName testweb`
15-
appName3=`randomName testweb`
16-
planName1=`randomName testplan`
17-
planName2=`randomName testplan`
18-
planName3=`randomName testplan`
13+
# appName1=`randomName testweb`
14+
# appName2=`randomName testweb`
15+
# appName3=`randomName testweb`
16+
# planName1=`randomName testplan`
17+
# planName2=`randomName testplan`
18+
# planName3=`randomName testplan`
1919
slotname1="staging"
2020
slotname2="testing"
2121
slotname3="staging"

examples/webapp-management/03-WebApp.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ printf "\n=== Managing Web Apps in Azure ===\n"
44
printf "\nSetup: Creating a new resource group: %s at location: %s.\n" "$groupName" "$location"
55
az group create --name "$groupName" --location "$location"
66

7-
appName1=`randomName testweb`
8-
appName2=`randomName testweb`
9-
appName3=`randomName testweb`
10-
appName4=`randomName testweb`
7+
# appName1=`randomName testweb`
8+
# appName2=`randomName testweb`
9+
# appName3=`randomName testweb`
10+
# appName4=`randomName testweb`
1111
slotname1="staging"
1212
slotname2="testing"
13-
planName1=`randomName testplan`
14-
planName2=`randomName testplan`
15-
planName3=`randomName testplan`
16-
planName4=`randomName testplan`
13+
# planName1=`randomName testplan`
14+
# planName2=`randomName testplan`
15+
# planName3=`randomName testplan`
16+
# planName4=`randomName testplan`
1717
tier1="Shared"
1818
tier2="Standard"
1919
tier3="Premium"

src/CLU/Commands.Common.ScenarioTest/ExamplesTests/WebsitesTests.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,27 @@ public void AppServicePlanTest()
3636
public void WebAppSlotTest()
3737
{
3838
var helper = _collectionState.GetRunner("webapp-management");
39+
helper.EnvironmentVariables.Add("appName1", helper.GenerateName("testweb"));
40+
helper.EnvironmentVariables.Add("appName2", helper.GenerateName("testweb"));
41+
helper.EnvironmentVariables.Add("appName3", helper.GenerateName("testweb"));
42+
helper.EnvironmentVariables.Add("planName1", helper.GenerateName("testplan"));
43+
helper.EnvironmentVariables.Add("planName2", helper.GenerateName("testplan"));
44+
helper.EnvironmentVariables.Add("planName3", helper.GenerateName("testplan"));
3945
helper.RunScript("02-WebAppSlot");
4046
}
4147

4248
[Fact]
4349
public void WebAppTest()
4450
{
4551
var helper = _collectionState.GetRunner("webapp-management");
52+
helper.EnvironmentVariables.Add("appName1", helper.GenerateName("testweb"));
53+
helper.EnvironmentVariables.Add("appName2", helper.GenerateName("testweb"));
54+
helper.EnvironmentVariables.Add("appName3", helper.GenerateName("testweb"));
55+
helper.EnvironmentVariables.Add("appName4", helper.GenerateName("testweb"));
56+
helper.EnvironmentVariables.Add("planName1", helper.GenerateName("testplan"));
57+
helper.EnvironmentVariables.Add("planName2", helper.GenerateName("testplan"));
58+
helper.EnvironmentVariables.Add("planName3", helper.GenerateName("testplan"));
59+
helper.EnvironmentVariables.Add("planName4", helper.GenerateName("testplan"));
4660
helper.RunScript("03-WebApp");
4761
}
4862
}

0 commit comments

Comments
 (0)