Skip to content

Commit f5bbf3d

Browse files
authored
Merge pull request #10233 from number213/nrp-team-alias
Use NrpTeamAlias in Network's tests to set ownership
2 parents bbfab16 + 3e5bf32 commit f5bbf3d

File tree

7 files changed

+13
-39
lines changed

7 files changed

+13
-39
lines changed

src/Network/Network.Test/NrpTeamAlias.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,8 @@ class NrpTeamAlias
4949

5050
//Azure NRP Firewall dev team
5151
public const string azurefirewall = "azurefirewall";
52+
53+
// Azure NRP bastion dev team
54+
public const string bastion = "bastion";
5255
}
5356
}

src/Network/Network.Test/ScenarioTests/BastionTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,31 +28,31 @@ public BastionTests(ITestOutputHelper output)
2828

2929
[Fact]
3030
[Trait(Category.AcceptanceType, Category.CheckIn)]
31-
[Trait(Category.Owner, Category.bastion)]
31+
[Trait(Category.Owner, NrpTeamAlias.bastion)]
3232
public void TestBastionCRUD()
3333
{
3434
TestRunner.RunTestScript("Test-BastionCRUD");
3535
}
3636

3737
[Fact]
3838
[Trait(Category.AcceptanceType, Category.CheckIn)]
39-
[Trait(Category.Owner, Category.bastion)]
39+
[Trait(Category.Owner, NrpTeamAlias.bastion)]
4040
public void TestBastionVnetsIpObjectsParams()
4141
{
4242
TestRunner.RunTestScript("Test-BastionVnetsIpObjectsParams");
4343
}
4444

4545
[Fact]
4646
[Trait(Category.AcceptanceType, Category.CheckIn)]
47-
[Trait(Category.Owner, Category.bastion)]
47+
[Trait(Category.Owner, NrpTeamAlias.bastion)]
4848
public void TestBastionVnetObjectParam()
4949
{
5050
TestRunner.RunTestScript("Test-BastionVnetObjectParam");
5151
}
5252

5353
[Fact]
5454
[Trait(Category.AcceptanceType, Category.CheckIn)]
55-
[Trait(Category.Owner, Category.bastion)]
55+
[Trait(Category.Owner, NrpTeamAlias.bastion)]
5656
public void TestBastionIpObjectParam()
5757
{
5858
TestRunner.RunTestScript("Test-BastionIpObjectParam");

src/Network/Network.Test/ScenarioTests/CortexTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,23 @@ public CortexTests(ITestOutputHelper output)
2929

3030
[Fact]
3131
[Trait(Category.AcceptanceType, Category.CheckIn)]
32-
[Trait(Category.Owner, Category.brooklynft)]
32+
[Trait(Category.Owner, NrpTeamAlias.brooklynft)]
3333
public void TestCortexCRUD()
3434
{
3535
TestRunner.RunTestScript("Test-CortexCRUD");
3636
}
3737

3838
[Fact]
3939
[Trait(Category.AcceptanceType, Category.CheckIn)]
40-
[Trait(Category.Owner, Category.pgtm)]
40+
[Trait(Category.Owner, NrpTeamAlias.pgtm)]
4141
public void TestCortexExpressRouteCRUD()
4242
{
4343
TestRunner.RunTestScript("Test-CortexExpressRouteCRUD");
4444
}
4545

4646
[Fact]
4747
[Trait(Category.RunType, Category.LiveOnly)]
48-
[Trait(Category.Owner, Category.brooklynft)]
48+
[Trait(Category.Owner, NrpTeamAlias.brooklynft)]
4949
public void TestCortexDownloadConfig()
5050
{
5151
TestRunner.RunTestScript("Test-CortexDownloadConfig");

src/Network/Network.Test/ScenarioTests/ExpressRoutePortTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public ExpressRoutePortTests(Xunit.Abstractions.ITestOutputHelper output)
2727

2828
[Fact]
2929
[Trait(Category.AcceptanceType, Category.CheckIn)]
30-
[Trait(Category.Owner, Category.pgtm)]
30+
[Trait(Category.Owner, NrpTeamAlias.pgtm)]
3131
public void TestExpressRoutePortCRUDMinimalParameters()
3232
{
3333
TestRunner.RunTestScript(string.Format("Test-ExpressRoutePortCRUD"));

src/Network/Network.Test/ScenarioTests/ExpressRoutePortsLocationTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public ExpressRoutePortsLocationTests(Xunit.Abstractions.ITestOutputHelper outpu
2727

2828
[Fact]
2929
[Trait(Category.AcceptanceType, Category.CheckIn)]
30-
[Trait(Category.Owner, Category.pgtm)]
30+
[Trait(Category.Owner, NrpTeamAlias.pgtm)]
3131
public void TestExpressRoutePortsLocationRead()
3232
{
3333
TestRunner.RunTestScript(string.Format("Test-ExpressRoutePortsLocationRead"));

src/Network/Network.Test/ScenarioTests/NetworkWatcherAPITests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public void TestTroubleshoot()
7575

7676
[Fact]
7777
[Trait(Category.RunType, Category.LiveOnly)]
78-
[Trait(Category.Owner, Category.netanalyticsdev)]
78+
[Trait(Category.Owner, NrpTeamAlias.netanalyticsdev)]
7979
public void TestFlowLog()
8080
{
8181
TestRunner.RunTestScript("Test-FlowLog");

tools/ScenarioTest.ResourceManager/Constants.cs

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -59,35 +59,6 @@ public class Category
5959

6060
public const string OneSDK = "OneSDK";
6161

62-
// Below is the list of aliases to contact on test behavior
63-
64-
// Virtual Appliance dev team
65-
public const string nvadev = "nvadev";
66-
67-
// SDN NRP Dev Team
68-
public const string sdnnrp = "sdnnrp";
69-
70-
// Pankaj's Team
71-
public const string pgtm = "pgtm";
72-
73-
// Windows Azure SLB Dev Team
74-
public const string slbdev = "slbdev";
75-
76-
// Brooklyn FTEs
77-
public const string brooklynft = "brooklynft";
78-
79-
// Azure Network Analytics Dev Team
80-
public const string netanalyticsdev = "netanalyticsdev";
81-
82-
// Windows Azure NRP dev team
83-
public const string wanrpdev = "wanrpdev";
84-
85-
//Azure NRP Firewall dev team
86-
public const string azurefirewall = "azurefirewall";
87-
88-
//Azure NRP bastion dev team
89-
public const string bastion = "bastion";
90-
9162
// Acceptance type
9263
public const string AcceptanceType = "AcceptanceType";
9364

0 commit comments

Comments
 (0)