Skip to content

Commit a4a5216

Browse files
committed
Add Category.Flaky trait to tests
1 parent a7ae978 commit a4a5216

File tree

10 files changed

+38
-0
lines changed

10 files changed

+38
-0
lines changed

src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/BatchApplicationPackageTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public class BatchApplicationPackageTests : WindowsAzure.Commands.Test.Utilities
2626
private const string version = "foo";
2727

2828
[Fact]
29+
[Trait(Category.AcceptanceType, Category.Flaky)]
2930
public void TestUploadApplicationPackage()
3031
{
3132
string id = "newApplicationPackage";
@@ -55,6 +56,7 @@ public void TestUploadApplicationPackage()
5556
}
5657

5758
[Fact]
59+
[Trait(Category.AcceptanceType, Category.Flaky)]
5860
public void TestUpdateApplicationPackage()
5961
{
6062
string id = "updateApplicationPackage";
@@ -84,6 +86,7 @@ public void TestUpdateApplicationPackage()
8486
}
8587

8688
[Fact]
89+
[Trait(Category.AcceptanceType, Category.Flaky)]
8790
public void TestCreatePoolWithApplicationPackage()
8891
{
8992
string id = "createPoolWithApplicationPackage";
@@ -112,6 +115,7 @@ public void TestCreatePoolWithApplicationPackage()
112115
}
113116

114117
[Fact]
118+
[Trait(Category.AcceptanceType, Category.Flaky)]
115119
public void TestUpdatePoolWithApplicationPackage()
116120
{
117121
string id = "updatePoolWithApplicationPackage";

src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/CertificateTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,14 @@ public CertificateTests(Xunit.Abstractions.ITestOutputHelper output)
2828
}
2929

3030
[Fact]
31+
[Trait(Category.AcceptanceType, Category.Flaky)]
3132
public void TestCertificateCrudOperations()
3233
{
3334
BatchController.NewInstance.RunPsTest("Test-CertificateCrudOperations");
3435
}
3536

3637
[Fact]
38+
[Trait(Category.AcceptanceType, Category.Flaky)]
3739
public void TestCancelCertificateDelete()
3840
{
3941
BatchController controller = BatchController.NewInstance;

src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/ComputeNodeTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public ComputeNodeTests(Xunit.Abstractions.ITestOutputHelper output)
2929
}
3030

3131
[Fact]
32+
[Trait(Category.AcceptanceType, Category.Flaky)]
3233
public void TestRemoveComputeNodes()
3334
{
3435
BatchController controller = BatchController.NewInstance;
@@ -51,6 +52,7 @@ public void TestRemoveComputeNodes()
5152
}
5253

5354
[Fact]
55+
[Trait(Category.AcceptanceType, Category.Flaky)]
5456
public void TestRebootAndReimageComputeNode()
5557
{
5658
BatchController controller = BatchController.NewInstance;
@@ -73,6 +75,7 @@ public void TestRebootAndReimageComputeNode()
7375
}
7476

7577
[Fact]
78+
[Trait(Category.AcceptanceType, Category.Flaky)]
7679
public void TestDisableAndEnableComputeNodeScheduling()
7780
{
7881
BatchController controller = BatchController.NewInstance;
@@ -92,6 +95,7 @@ public void TestDisableAndEnableComputeNodeScheduling()
9295
}
9396

9497
[Fact]
98+
[Trait(Category.AcceptanceType, Category.Flaky)]
9599
public void TestGetComputeNodeRemoteLoginSettings()
96100
{
97101
BatchController controller = BatchController.NewInstance;

src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/FileTests.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public FileTests(Xunit.Abstractions.ITestOutputHelper output)
3030
}
3131

3232
[Fact]
33+
[Trait(Category.AcceptanceType, Category.Flaky)]
3334
public void TestGetNodeFileContentByTask()
3435
{
3536
BatchController controller = BatchController.NewInstance;
@@ -57,6 +58,7 @@ public void TestGetNodeFileContentByTask()
5758
}
5859

5960
[Fact]
61+
[Trait(Category.AcceptanceType, Category.Flaky)]
6062
public void TestGetNodeFileContentByComputeNode()
6163
{
6264
BatchController controller = BatchController.NewInstance;
@@ -75,6 +77,7 @@ public void TestGetNodeFileContentByComputeNode()
7577
}
7678

7779
[Fact]
80+
[Trait(Category.AcceptanceType, Category.Flaky)]
7881
public void TestGetRemoteDesktopProtocolFile()
7982
{
8083
BatchController controller = BatchController.NewInstance;
@@ -93,6 +96,7 @@ public void TestGetRemoteDesktopProtocolFile()
9396
}
9497

9598
[Fact]
99+
[Trait(Category.AcceptanceType, Category.Flaky)]
96100
public void TestDeleteNodeFileByTask()
97101
{
98102
BatchController controller = BatchController.NewInstance;
@@ -119,6 +123,7 @@ public void TestDeleteNodeFileByTask()
119123
}
120124

121125
[Fact]
126+
[Trait(Category.AcceptanceType, Category.Flaky)]
122127
public void TestDeleteNodeFileByComputeNode()
123128
{
124129
BatchController controller = BatchController.NewInstance;

src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/JobScheduleTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public void TestJobScheduleCRUD()
3434

3535

3636
[Fact]
37+
[Trait(Category.AcceptanceType, Category.Flaky)]
3738
public void TestDisableEnableTerminateJobSchedule()
3839
{
3940
BatchController controller = BatchController.NewInstance;

src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/JobTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,15 @@ public JobTests(Xunit.Abstractions.ITestOutputHelper output)
2828
}
2929

3030
[Fact]
31+
[Trait(Category.AcceptanceType, Category.Flaky)]
3132
public void TestJobCRUD()
3233
{
3334
BatchController.NewInstance.RunPsTest("Test-JobCRUD");
3435
}
3536

3637

3738
[Fact]
39+
[Trait(Category.AcceptanceType, Category.Flaky)]
3840
public void TestDisableEnableTerminateJob()
3941
{
4042
BatchController controller = BatchController.NewInstance;
@@ -57,6 +59,7 @@ public void TestDisableEnableTerminateJob()
5759
}
5860

5961
[Fact]
62+
[Trait(Category.AcceptanceType, Category.Flaky)]
6063
public void IfJobSetsAutoFailure_ItCompletesWhenAnyTaskFails()
6164
{
6265
BatchController controller = BatchController.NewInstance;

src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/PoolTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,14 @@ public PoolTests(Xunit.Abstractions.ITestOutputHelper output)
3131
}
3232

3333
[Fact]
34+
[Trait(Category.AcceptanceType, Category.Flaky)]
3435
public void TestPoolCRUD()
3536
{
3637
BatchController.NewInstance.RunPsTest("Test-PoolCRUD");
3738
}
3839

3940
[Fact]
41+
[Trait(Category.AcceptanceType, Category.Flaky)]
4042
public void TestResizeAndStopResizePool()
4143
{
4244
BatchController controller = BatchController.NewInstance;
@@ -58,6 +60,7 @@ public void TestResizeAndStopResizePool()
5860
}
5961

6062
[Fact]
63+
[Trait(Category.AcceptanceType, Category.Flaky)]
6164
public void TestAutoScaleActions()
6265
{
6366
BatchController controller = BatchController.NewInstance;
@@ -79,6 +82,7 @@ public void TestAutoScaleActions()
7982
}
8083

8184
[Fact]
85+
[Trait(Category.AcceptanceType, Category.Flaky)]
8286
public void TestChangeOSVersion()
8387
{
8488
BatchController controller = BatchController.NewInstance;

src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/TaskTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public TaskTests(Xunit.Abstractions.ITestOutputHelper output)
2626
}
2727

2828
[Fact]
29+
[Trait(Category.AcceptanceType, Category.Flaky)]
2930
public void TestTaskCRUD()
3031
{
3132
BatchController controller = BatchController.NewInstance;
@@ -47,6 +48,7 @@ public void TestTaskCRUD()
4748
}
4849

4950
[Fact]
51+
[Trait(Category.AcceptanceType, Category.Flaky)]
5052
public void TestCreateTaskCollection()
5153
{
5254
BatchController controller = BatchController.NewInstance;
@@ -68,6 +70,7 @@ public void TestCreateTaskCollection()
6870
}
6971

7072
[Fact]
73+
[Trait(Category.AcceptanceType, Category.Flaky)]
7174
public void TestTerminateTask()
7275
{
7376
BatchController controller = BatchController.NewInstance;
@@ -94,6 +97,7 @@ public void TestTerminateTask()
9497
}
9598

9699
[Fact]
100+
[Trait(Category.AcceptanceType, Category.Flaky)]
97101
public void TestListAllSubtasks()
98102
{
99103
BatchController controller = BatchController.NewInstance;

src/ResourceManager/Profile/Commands.Profile.Test/ArgumentCompleterTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,14 @@ public ArgumentCompleterTests(ITestOutputHelper output)
3636
}
3737

3838
[Fact]
39+
[Trait(Category.AcceptanceType, Category.Flaky)]
3940
public void TestLocationCompleter()
4041
{
4142
ProfileController.NewInstance.RunPsTest(xunitLogger, "72f988bf-86f1-41af-91ab-2d7cd011db47", "Test-LocationCompleter");
4243
}
4344

4445
[Fact]
46+
[Trait(Category.AcceptanceType, Category.Flaky)]
4547
public void TestResourceGroupCompleter()
4648
{
4749
ProfileController.NewInstance.RunPsTest(xunitLogger, "72f988bf-86f1-41af-91ab-2d7cd011db47", "Test-ResourceGroupCompleter");

src/ResourceManager/Profile/Commands.Profile.Test/LongRunningCmdletTests.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public LongRunningCmdletTests(ITestOutputHelper output)
4848
}
4949

5050
[Fact]
51+
[Trait(Category.AcceptanceType, Category.Flaky)]
5152
public void CanReceiveAllStreams()
5253
{
5354
Mock<ICommandRuntime> mockRuntime;
@@ -60,6 +61,7 @@ public void CanReceiveAllStreams()
6061
}
6162

6263
[Fact]
64+
[Trait(Category.AcceptanceType, Category.Flaky)]
6365
public void CanSupportShouldProcess()
6466
{
6567
Mock<ICommandRuntime> mockRuntime;
@@ -72,6 +74,7 @@ public void CanSupportShouldProcess()
7274
}
7375

7476
[Fact]
77+
[Trait(Category.AcceptanceType, Category.Flaky)]
7578
public void CanSupportShouldContinue()
7679
{
7780
Mock<ICommandRuntime> mockRuntime;
@@ -85,6 +88,7 @@ public void CanSupportShouldContinue()
8588
}
8689

8790
[Fact]
91+
[Trait(Category.AcceptanceType, Category.Flaky)]
8892
public void CanHandleCmdletException()
8993
{
9094
Mock<ICommandRuntime> mockRuntime;
@@ -99,6 +103,7 @@ public void CanHandleCmdletException()
99103
}
100104

101105
[Fact]
106+
[Trait(Category.AcceptanceType, Category.Flaky)]
102107
public void CanHandleCmdletStop()
103108
{
104109
Mock<ICommandRuntime> mockRuntime;
@@ -124,6 +129,7 @@ public void CanHandleCmdletStop()
124129

125130

126131
[Fact]
132+
[Trait(Category.AcceptanceType, Category.Flaky)]
127133
public void CanHandleShouldProcessExceptionForConfirm()
128134
{
129135
Mock<ICommandRuntime> mockRuntime;
@@ -139,6 +145,7 @@ public void CanHandleShouldProcessExceptionForConfirm()
139145
}
140146

141147
[Fact]
148+
[Trait(Category.AcceptanceType, Category.Flaky)]
142149
public void CanHandleShouldProcessExceptionForWhatIf()
143150
{
144151
Mock<ICommandRuntime> mockRuntime;
@@ -155,6 +162,7 @@ public void CanHandleShouldProcessExceptionForWhatIf()
155162
}
156163

157164
[Fact]
165+
[Trait(Category.AcceptanceType, Category.Flaky)]
158166
public void CanHandleShouldContinueException()
159167
{
160168
Mock<ICommandRuntime> mockRuntime;
@@ -169,6 +177,7 @@ public void CanHandleShouldContinueException()
169177
}
170178

171179
[Fact]
180+
[Trait(Category.AcceptanceType, Category.Flaky)]
172181
public void JobCopiesCmdletParameterSet()
173182
{
174183
Mock<ICommandRuntime> mock = new Mock<ICommandRuntime>();

0 commit comments

Comments
 (0)