Skip to content

Commit 9bed911

Browse files
ogailogail
authored andcommitted
Added CheckIn trait for Commands.Test tests
1 parent 3e00457 commit 9bed911

File tree

108 files changed

+546
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+546
-0
lines changed

src/ServiceManagement/Services/Commands.Test/CloudService/Development/DisableAzureRemoteDesktopCommandTest.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
using Microsoft.WindowsAzure.Commands.Utilities.Common;
2323
using Microsoft.WindowsAzure.Commands.Utilities.Common.XmlSchema.ServiceConfigurationSchema;
2424
using Microsoft.WindowsAzure.Commands.Common;
25+
using Microsoft.WindowsAzure.Commands.ScenarioTest;
2526
using Xunit;
2627
using Microsoft.Azure.Common.Authentication;
2728

@@ -69,6 +70,7 @@ private static void VerifyDisableRoleSettings(CloudServiceProject service)
6970
/// Enable remote desktop for an empty service.
7071
/// </summary>
7172
[Fact]
73+
[Trait(Category.AcceptanceType, Category.CheckIn)]
7274
public void DisableRemoteDesktopForEmptyService()
7375
{
7476
using (FileSystemHelper files = new FileSystemHelper(this))
@@ -83,6 +85,7 @@ public void DisableRemoteDesktopForEmptyService()
8385
/// Disable remote desktop for a simple web role.
8486
/// </summary>
8587
[Fact]
88+
[Trait(Category.AcceptanceType, Category.CheckIn)]
8689
public void DisableRemoteDesktopForWebRole()
8790
{
8891
using (FileSystemHelper files = new FileSystemHelper(this))
@@ -102,6 +105,7 @@ public void DisableRemoteDesktopForWebRole()
102105
/// Disable remote desktop for web and worker roles.
103106
/// </summary>
104107
[Fact]
108+
[Trait(Category.AcceptanceType, Category.CheckIn)]
105109
public void DisableRemoteDesktopForWebAndWorkerRoles()
106110
{
107111
using (FileSystemHelper files = new FileSystemHelper(this))
@@ -120,6 +124,7 @@ public void DisableRemoteDesktopForWebAndWorkerRoles()
120124
/// Enable then disable remote desktop for a simple web role.
121125
/// </summary>
122126
[Fact]
127+
[Trait(Category.AcceptanceType, Category.CheckIn)]
123128
public void EnableDisableRemoteDesktopForWebRole()
124129
{
125130
using (FileSystemHelper files = new FileSystemHelper(this))
@@ -142,6 +147,7 @@ public void EnableDisableRemoteDesktopForWebRole()
142147
/// Enable then disable remote desktop for web and worker roles.
143148
/// </summary>
144149
[Fact]
150+
[Trait(Category.AcceptanceType, Category.CheckIn)]
145151
public void EnableDisableRemoteDesktopForWebAndWorkerRoles()
146152
{
147153
using (FileSystemHelper files = new FileSystemHelper(this))
@@ -167,6 +173,7 @@ public void EnableDisableRemoteDesktopForWebAndWorkerRoles()
167173
/// Enable then disable remote desktop for web and worker roles.
168174
/// </summary>
169175
[Fact]
176+
[Trait(Category.AcceptanceType, Category.CheckIn)]
170177
public void EnableDisableEnableRemoteDesktopForWebAndWorkerRoles()
171178
{
172179
using (FileSystemHelper files = new FileSystemHelper(this))

src/ServiceManagement/Services/Commands.Test/CloudService/Development/EnableAzureMemcacheRoleTests.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
using Microsoft.WindowsAzure.Commands.Utilities.Common.XmlSchema.ServiceConfigurationSchema;
2828
using Microsoft.WindowsAzure.Commands.Utilities.Common.XmlSchema.ServiceDefinitionSchema;
2929
using Microsoft.WindowsAzure.Commands.Utilities.Properties;
30+
using Microsoft.WindowsAzure.Commands.ScenarioTest;
3031
using Xunit;
3132

3233
namespace Microsoft.WindowsAzure.Commands.Test.CloudService.Development.Tests
@@ -61,6 +62,7 @@ public EnableAzureMemcacheRoleTests()
6162
}
6263

6364
[Fact]
65+
[Trait(Category.AcceptanceType, Category.CheckIn)]
6466
public void EnableAzureMemcacheRoleProcess()
6567
{
6668
using (FileSystemHelper files = new FileSystemHelper(this))
@@ -87,6 +89,7 @@ public void EnableAzureMemcacheRoleProcess()
8789
/// Verify that enabling cache on worker role will pass.
8890
/// </summary>
8991
[Fact]
92+
[Trait(Category.AcceptanceType, Category.CheckIn)]
9093
public void EnableAzureMemcacheRoleProcessOnWorkerRoleSuccess()
9194
{
9295
using (FileSystemHelper files = new FileSystemHelper(this))
@@ -143,6 +146,7 @@ public void EnableAzureMemcacheRoleProcessOnWorkerRoleSuccess()
143146
/// Verify that enabling cache with non-existing cache worker role will fail.
144147
/// </summary>
145148
[Fact]
149+
[Trait(Category.AcceptanceType, Category.CheckIn)]
146150
public void EnableAzureMemcacheRoleProcessCacheRoleDoesNotExistFail()
147151
{
148152
using (FileSystemHelper files = new FileSystemHelper(this))
@@ -164,6 +168,7 @@ public void EnableAzureMemcacheRoleProcessCacheRoleDoesNotExistFail()
164168
/// Verify that enabling cache with non-existing role to enable on will fail.
165169
/// </summary>
166170
[Fact]
171+
[Trait(Category.AcceptanceType, Category.CheckIn)]
167172
public void EnableAzureMemcacheRoleProcessRoleDoesNotExistFail()
168173
{
169174
using (FileSystemHelper files = new FileSystemHelper(this))
@@ -184,6 +189,7 @@ public void EnableAzureMemcacheRoleProcessRoleDoesNotExistFail()
184189
/// Verify that enabling cache using same cache worker role on role with cache will fail.
185190
/// </summary>
186191
[Fact]
192+
[Trait(Category.AcceptanceType, Category.CheckIn)]
187193
public void EnableAzureMemcacheRoleProcessAlreadyEnabledFail()
188194
{
189195
using (FileSystemHelper files = new FileSystemHelper(this))
@@ -207,6 +213,7 @@ public void EnableAzureMemcacheRoleProcessAlreadyEnabledFail()
207213
/// Verify that enabling cache using different cache worker role on role with cache will fail.
208214
/// </summary>
209215
[Fact]
216+
[Trait(Category.AcceptanceType, Category.CheckIn)]
210217
public void EnableAzureMemcacheRoleProcessAlreadyEnabledNewCacheRoleFail()
211218
{
212219
using (FileSystemHelper files = new FileSystemHelper(this))
@@ -232,6 +239,7 @@ public void EnableAzureMemcacheRoleProcessAlreadyEnabledNewCacheRoleFail()
232239
/// Verify that enabling cache using non-cache worker role will fail.
233240
/// </summary>
234241
[Fact]
242+
[Trait(Category.AcceptanceType, Category.CheckIn)]
235243
public void EnableAzureMemcacheRoleProcessUsingNonCacheWorkerRole()
236244
{
237245
using (FileSystemHelper files = new FileSystemHelper(this))
@@ -252,6 +260,7 @@ public void EnableAzureMemcacheRoleProcessUsingNonCacheWorkerRole()
252260
}
253261

254262
[Fact]
263+
[Trait(Category.AcceptanceType, Category.CheckIn)]
255264
public void EnableAzureMemcacheRoleProcessWithDefaultRoleName()
256265
{
257266
using (FileSystemHelper files = new FileSystemHelper(this))
@@ -340,6 +349,7 @@ private static void AssertWebConfig(string webCloudConfigPath)
340349
/// Verify that enabling cache with non-existing cache worker role will fail.
341350
/// </summary>
342351
[Fact]
352+
[Trait(Category.AcceptanceType, Category.CheckIn)]
343353
public void EnableAzureMemcacheRoleProcessOnCacheWorkerRoleFail()
344354
{
345355
using (FileSystemHelper files = new FileSystemHelper(this))
@@ -356,6 +366,7 @@ public void EnableAzureMemcacheRoleProcessOnCacheWorkerRoleFail()
356366
}
357367

358368
[Fact]
369+
[Trait(Category.AcceptanceType, Category.CheckIn)]
359370
public void EnableAzureMemcacheWithoutCacheWorkerRoleName()
360371
{
361372
using (FileSystemHelper files = new FileSystemHelper(this))
@@ -379,6 +390,7 @@ public void EnableAzureMemcacheWithoutCacheWorkerRoleName()
379390
}
380391

381392
[Fact]
393+
[Trait(Category.AcceptanceType, Category.CheckIn)]
382394
public void EnableAzureMemcacheWithoutCacheWorkerRoleNameAndServiceHasMultipleWorkerRoles()
383395
{
384396
using (FileSystemHelper files = new FileSystemHelper(this))
@@ -404,6 +416,7 @@ public void EnableAzureMemcacheWithoutCacheWorkerRoleNameAndServiceHasMultipleWo
404416
}
405417

406418
[Fact]
419+
[Trait(Category.AcceptanceType, Category.CheckIn)]
407420
public void EnableAzureMemcacheWithNoCacheWorkerRolesFail()
408421
{
409422
using (FileSystemHelper files = new FileSystemHelper(this))

src/ServiceManagement/Services/Commands.Test/CloudService/Development/EnableAzureRemoteDesktopCommandTest.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
using Microsoft.WindowsAzure.Commands.Utilities.Common.XmlSchema.ServiceConfigurationSchema;
2626
using Microsoft.WindowsAzure.Commands.Utilities.Common.XmlSchema.ServiceDefinitionSchema;
2727
using Microsoft.WindowsAzure.Commands.Common;
28+
using Microsoft.WindowsAzure.Commands.ScenarioTest;
2829
using Xunit;
2930
using Microsoft.Azure.Common.Authentication;
3031

@@ -123,6 +124,7 @@ public static void VerifyRoleSettings(CloudServiceProject service)
123124
/// Perform basic parameter validation.
124125
/// </summary>
125126
[Fact]
127+
[Trait(Category.AcceptanceType, Category.CheckIn)]
126128
public void EnableRemoteDesktopBasicParameterValidation()
127129
{
128130
using (FileSystemHelper files = new FileSystemHelper(this))
@@ -153,6 +155,7 @@ public void EnableRemoteDesktopBasicParameterValidation()
153155
/// Enable remote desktop for an empty service.
154156
/// </summary>
155157
[Fact]
158+
[Trait(Category.AcceptanceType, Category.CheckIn)]
156159
public void EnableRemoteDesktopForEmptyService()
157160
{
158161
using (FileSystemHelper files = new FileSystemHelper(this))
@@ -168,6 +171,7 @@ public void EnableRemoteDesktopForEmptyService()
168171
/// Enable remote desktop for a simple web role.
169172
/// </summary>
170173
[Fact]
174+
[Trait(Category.AcceptanceType, Category.CheckIn)]
171175
public void EnableRemoteDesktopForWebRole()
172176
{
173177
using (FileSystemHelper files = new FileSystemHelper(this))
@@ -190,6 +194,7 @@ public void EnableRemoteDesktopForWebRole()
190194
/// Enable remote desktop for web and worker roles.
191195
/// </summary>
192196
[Fact]
197+
[Trait(Category.AcceptanceType, Category.CheckIn)]
193198
public void EnableRemoteDesktopForWebAndWorkerRoles()
194199
{
195200
using (FileSystemHelper files = new FileSystemHelper(this))
@@ -217,6 +222,7 @@ public void EnableRemoteDesktopForWebAndWorkerRoles()
217222
/// Enable remote desktop for multiple web and worker roles.
218223
/// </summary>
219224
[Fact]
225+
[Trait(Category.AcceptanceType, Category.CheckIn)]
220226
public void EnableRemoteDesktopForMultipleWebAndWorkerRolesTwice()
221227
{
222228
using (FileSystemHelper files = new FileSystemHelper(this))
@@ -256,6 +262,7 @@ public void EnableRemoteDesktopForMultipleWebAndWorkerRolesTwice()
256262
/// Enable remote desktop for a simple web role.
257263
/// </summary>
258264
[Fact]
265+
[Trait(Category.AcceptanceType, Category.CheckIn)]
259266
public void EnableRemoteDesktopUnicode()
260267
{
261268
using (FileSystemHelper files = new FileSystemHelper(this))
@@ -284,6 +291,7 @@ public void EnableRemoteDesktopUnicode()
284291
/// Enable remote desktop using short unicode password.
285292
/// </summary>
286293
[Fact]
294+
[Trait(Category.AcceptanceType, Category.CheckIn)]
287295
public void EnableRemoteDesktopUnicodeAndShortPasswordFails()
288296
{
289297
using (FileSystemHelper files = new FileSystemHelper(this))

src/ServiceManagement/Services/Commands.Test/CloudService/Development/GetAzureServiceProjectRuntimesTest.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
using Microsoft.WindowsAzure.Commands.Test.Utilities.CloudService;
2020
using Microsoft.WindowsAzure.Commands.Test.Utilities.Common;
2121
using Microsoft.WindowsAzure.Commands.Utilities.CloudService;
22+
using Microsoft.WindowsAzure.Commands.ScenarioTest;
2223
using Xunit;
2324

2425
namespace Microsoft.WindowsAzure.Commands.Test.CloudService.Development.Tests.Cmdlet
@@ -42,6 +43,7 @@ public GetAzureServiceProjectRuntimesTests()
4243
/// Verify that the correct runtimes are returned in the correct format from a given runtime manifest
4344
/// </summary>
4445
[Fact]
46+
[Trait(Category.AcceptanceType, Category.CheckIn)]
4547
public void TestGetRuntimes()
4648
{
4749
using (FileSystemHelper files = new FileSystemHelper(this))

src/ServiceManagement/Services/Commands.Test/CloudService/Development/SaveAzureServiceProjectPackageTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
using Microsoft.WindowsAzure.Commands.Utilities.Common;
2424
using Microsoft.WindowsAzure.Commands.Utilities.Properties;
2525
using Microsoft.WindowsAzure.Commands.Common;
26+
using Microsoft.WindowsAzure.Commands.ScenarioTest;
2627
using Xunit;
2728
using Microsoft.Azure.Common.Authentication;
2829

@@ -56,6 +57,7 @@ public SaveAzureServiceProjectPackageCommandTest()
5657
}
5758

5859
[Fact]
60+
[Trait(Category.AcceptanceType, Category.CheckIn)]
5961
public void TestCreatePackageSuccessfull()
6062
{
6163
using (FileSystemHelper files = new FileSystemHelper(this))
@@ -78,6 +80,7 @@ public void TestCreatePackageSuccessfull()
7880
}
7981

8082
[Fact]
83+
[Trait(Category.AcceptanceType, Category.CheckIn)]
8184
public void TestCreatePackageWithEmptyServiceSuccessfull()
8285
{
8386
using (FileSystemHelper files = new FileSystemHelper(this))
@@ -97,6 +100,7 @@ public void TestCreatePackageWithEmptyServiceSuccessfull()
97100
}
98101

99102
[Fact]
103+
[Trait(Category.AcceptanceType, Category.CheckIn)]
100104
public void TestCreatePackageWithMultipleRolesSuccessfull()
101105
{
102106
using (FileSystemHelper files = new FileSystemHelper(this))

src/ServiceManagement/Services/Commands.Test/CloudService/Development/Scaffolding/AddAzureNodeWebRoleTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
using System.IO;
1616
using System.Management.Automation;
17+
using Microsoft.WindowsAzure.Commands.ScenarioTest;
1718
using Xunit;
1819
using Microsoft.WindowsAzure.Commands.CloudService.Development.Scaffolding;
1920
using Microsoft.WindowsAzure.Commands.Common.Test.Mocks;
@@ -39,6 +40,7 @@ public AddAzureNodeWebRoleTests()
3940
}
4041

4142
[Fact]
43+
[Trait(Category.AcceptanceType, Category.CheckIn)]
4244
public void AddAzureNodeWebRoleProcess()
4345
{
4446
using (FileSystemHelper files = new FileSystemHelper(this))
@@ -58,6 +60,7 @@ public void AddAzureNodeWebRoleProcess()
5860
}
5961

6062
[Fact]
63+
[Trait(Category.AcceptanceType, Category.CheckIn)]
6164
public void AddAzureNodeWebRoleWillRecreateDeploymentSettings()
6265
{
6366
using (FileSystemHelper files = new FileSystemHelper(this))

src/ServiceManagement/Services/Commands.Test/CloudService/Development/Scaffolding/AddAzureNodeWorkerRoleTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
using System.IO;
1616
using System.Management.Automation;
17+
using Microsoft.WindowsAzure.Commands.ScenarioTest;
1718
using Xunit;
1819
using Microsoft.WindowsAzure.Commands.CloudService.Development.Scaffolding;
1920
using Microsoft.WindowsAzure.Commands.Common.Test.Mocks;
@@ -39,6 +40,7 @@ public AddAzureNodeWorkerRoleTests()
3940
}
4041

4142
[Fact]
43+
[Trait(Category.AcceptanceType, Category.CheckIn)]
4244
public void AddAzureNodeWorkerRoleProcess()
4345
{
4446
using (FileSystemHelper files = new FileSystemHelper(this))
@@ -58,6 +60,7 @@ public void AddAzureNodeWorkerRoleProcess()
5860
}
5961

6062
[Fact]
63+
[Trait(Category.AcceptanceType, Category.CheckIn)]
6164
public void AddAzureNodeWorkerRoleWillRecreateDeploymentSettings()
6265
{
6366
using (FileSystemHelper files = new FileSystemHelper(this))

src/ServiceManagement/Services/Commands.Test/CloudService/Development/Scaffolding/AddAzurePHPWebRoleTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
using System.IO;
1616
using System.Management.Automation;
17+
using Microsoft.WindowsAzure.Commands.ScenarioTest;
1718
using Xunit;
1819
using Microsoft.WindowsAzure.Commands.CloudService.Development.Scaffolding;
1920
using Microsoft.WindowsAzure.Commands.Common.Test.Mocks;
@@ -39,6 +40,7 @@ public AddAzurePHPWebRoleTests()
3940
}
4041

4142
[Fact]
43+
[Trait(Category.AcceptanceType, Category.CheckIn)]
4244
public void AddAzurePHPWebRoleProcess()
4345
{
4446
using (FileSystemHelper files = new FileSystemHelper(this))
@@ -58,6 +60,7 @@ public void AddAzurePHPWebRoleProcess()
5860
}
5961

6062
[Fact]
63+
[Trait(Category.AcceptanceType, Category.CheckIn)]
6164
public void AddAzurePHPWebRoleWillRecreateDeploymentSettings()
6265
{
6366
using (FileSystemHelper files = new FileSystemHelper(this))

src/ServiceManagement/Services/Commands.Test/CloudService/Development/Scaffolding/AddAzurePHPWorkerRoleTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
using System.IO;
1616
using System.Management.Automation;
17+
using Microsoft.WindowsAzure.Commands.ScenarioTest;
1718
using Xunit;
1819
using Microsoft.WindowsAzure.Commands.CloudService.Development.Scaffolding;
1920
using Microsoft.WindowsAzure.Commands.Common.Test.Mocks;
@@ -38,6 +39,7 @@ public AddAzurePHPWorkerRoleTests()
3839
}
3940

4041
[Fact]
42+
[Trait(Category.AcceptanceType, Category.CheckIn)]
4143
public void AddAzurePHPWorkerRoleProcess()
4244
{
4345
using (FileSystemHelper files = new FileSystemHelper(this))
@@ -58,6 +60,7 @@ public void AddAzurePHPWorkerRoleProcess()
5860
}
5961

6062
[Fact]
63+
[Trait(Category.AcceptanceType, Category.CheckIn)]
6164
public void AddAzurePHPWorkerRoleWillRecreateDeploymentSettings()
6265
{
6366
using (FileSystemHelper files = new FileSystemHelper(this))

src/ServiceManagement/Services/Commands.Test/CloudService/Development/Scaffolding/AddAzureWebRoleTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
using System.IO;
1616
using System.Management.Automation;
17+
using Microsoft.WindowsAzure.Commands.ScenarioTest;
1718
using Xunit;
1819
using Microsoft.WindowsAzure.Commands.CloudService.Development.Scaffolding;
1920
using Microsoft.WindowsAzure.Commands.Common.Test.Mocks;
@@ -39,6 +40,7 @@ public AddAzureWebRoleTests()
3940
}
4041

4142
[Fact]
43+
[Trait(Category.AcceptanceType, Category.CheckIn)]
4244
public void AddAzureWebRoleProcess()
4345
{
4446
using (FileSystemHelper files = new FileSystemHelper(this))
@@ -62,6 +64,7 @@ public void AddAzureWebRoleProcess()
6264
}
6365

6466
[Fact]
67+
[Trait(Category.AcceptanceType, Category.CheckIn)]
6568
public void AddAzureWebRoleWillRecreateDeploymentSettings()
6669
{
6770
using (FileSystemHelper files = new FileSystemHelper(this))
@@ -115,6 +118,7 @@ public void AddAzureWebRoleWithTemplateFolder()
115118
}
116119

117120
[Fact]
121+
[Trait(Category.AcceptanceType, Category.CheckIn)]
118122
public void AddAzureWebRoleWithMissingScaffoldXmlFail()
119123
{
120124
using (FileSystemHelper files = new FileSystemHelper(this))

0 commit comments

Comments
 (0)