Skip to content

Commit 59a65e5

Browse files
committed
Move Batch tests using a new instance of BatchController to on-demand
1 parent 7f16202 commit 59a65e5

File tree

8 files changed

+0
-27
lines changed

8 files changed

+0
-27
lines changed

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

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

2828
[Fact]
29-
[Trait(Category.AcceptanceType, Category.CheckIn)]
3029
public void TestUploadApplicationPackage()
3130
{
3231
string id = "newApplicationPackage";
@@ -56,7 +55,6 @@ public void TestUploadApplicationPackage()
5655
}
5756

5857
[Fact]
59-
[Trait(Category.AcceptanceType, Category.CheckIn)]
6058
public void TestUpdateApplicationPackage()
6159
{
6260
string id = "updateApplicationPackage";
@@ -86,7 +84,6 @@ public void TestUpdateApplicationPackage()
8684
}
8785

8886
[Fact]
89-
[Trait(Category.AcceptanceType, Category.CheckIn)]
9087
public void TestCreatePoolWithApplicationPackage()
9188
{
9289
string id = "createPoolWithApplicationPackage";
@@ -115,7 +112,6 @@ public void TestCreatePoolWithApplicationPackage()
115112
}
116113

117114
[Fact]
118-
[Trait(Category.AcceptanceType, Category.CheckIn)]
119115
public void TestUpdatePoolWithApplicationPackage()
120116
{
121117
string id = "updatePoolWithApplicationPackage";

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

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

3030
[Fact]
31-
[Trait(Category.AcceptanceType, Category.CheckIn)]
3231
public void TestCertificateCrudOperations()
3332
{
3433
BatchController.NewInstance.RunPsTest("Test-CertificateCrudOperations");
3534
}
3635

3736
[Fact]
38-
[Trait(Category.AcceptanceType, Category.CheckIn)]
3937
public void TestCancelCertificateDelete()
4038
{
4139
BatchController controller = BatchController.NewInstance;

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

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

3131
[Fact]
32-
[Trait(Category.AcceptanceType, Category.CheckIn)]
3332
public void TestRemoveComputeNodes()
3433
{
3534
BatchController controller = BatchController.NewInstance;
@@ -52,7 +51,6 @@ public void TestRemoveComputeNodes()
5251
}
5352

5453
[Fact]
55-
[Trait(Category.AcceptanceType, Category.CheckIn)]
5654
public void TestRebootAndReimageComputeNode()
5755
{
5856
BatchController controller = BatchController.NewInstance;
@@ -75,7 +73,6 @@ public void TestRebootAndReimageComputeNode()
7573
}
7674

7775
[Fact]
78-
[Trait(Category.AcceptanceType, Category.CheckIn)]
7976
public void TestDisableAndEnableComputeNodeScheduling()
8077
{
8178
BatchController controller = BatchController.NewInstance;
@@ -95,7 +92,6 @@ public void TestDisableAndEnableComputeNodeScheduling()
9592
}
9693

9794
[Fact]
98-
[Trait(Category.AcceptanceType, Category.CheckIn)]
9995
public void TestGetComputeNodeRemoteLoginSettings()
10096
{
10197
BatchController controller = BatchController.NewInstance;

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

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

3232
[Fact]
33-
[Trait(Category.AcceptanceType, Category.CheckIn)]
3433
public void TestGetNodeFileContentByTask()
3534
{
3635
BatchController controller = BatchController.NewInstance;
@@ -58,7 +57,6 @@ public void TestGetNodeFileContentByTask()
5857
}
5958

6059
[Fact]
61-
[Trait(Category.AcceptanceType, Category.CheckIn)]
6260
public void TestGetNodeFileContentByComputeNode()
6361
{
6462
BatchController controller = BatchController.NewInstance;
@@ -77,7 +75,6 @@ public void TestGetNodeFileContentByComputeNode()
7775
}
7876

7977
[Fact]
80-
[Trait(Category.AcceptanceType, Category.CheckIn)]
8178
public void TestGetRemoteDesktopProtocolFile()
8279
{
8380
BatchController controller = BatchController.NewInstance;
@@ -96,7 +93,6 @@ public void TestGetRemoteDesktopProtocolFile()
9693
}
9794

9895
[Fact]
99-
[Trait(Category.AcceptanceType, Category.CheckIn)]
10096
public void TestDeleteNodeFileByTask()
10197
{
10298
BatchController controller = BatchController.NewInstance;
@@ -123,7 +119,6 @@ public void TestDeleteNodeFileByTask()
123119
}
124120

125121
[Fact]
126-
[Trait(Category.AcceptanceType, Category.CheckIn)]
127122
public void TestDeleteNodeFileByComputeNode()
128123
{
129124
BatchController controller = BatchController.NewInstance;

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

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

3535

3636
[Fact]
37-
[Trait(Category.AcceptanceType, Category.CheckIn)]
3837
public void TestDisableEnableTerminateJobSchedule()
3938
{
4039
BatchController controller = BatchController.NewInstance;

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

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

3030
[Fact]
31-
[Trait(Category.AcceptanceType, Category.CheckIn)]
3231
public void TestJobCRUD()
3332
{
3433
BatchController.NewInstance.RunPsTest("Test-JobCRUD");
3534
}
3635

3736

3837
[Fact]
39-
[Trait(Category.AcceptanceType, Category.CheckIn)]
4038
public void TestDisableEnableTerminateJob()
4139
{
4240
BatchController controller = BatchController.NewInstance;
@@ -59,7 +57,6 @@ public void TestDisableEnableTerminateJob()
5957
}
6058

6159
[Fact]
62-
[Trait(Category.AcceptanceType, Category.CheckIn)]
6360
public void IfJobSetsAutoFailure_ItCompletesWhenAnyTaskFails()
6461
{
6562
BatchController controller = BatchController.NewInstance;

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

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

3333
[Fact]
34-
[Trait(Category.AcceptanceType, Category.CheckIn)]
3534
public void TestPoolCRUD()
3635
{
3736
BatchController.NewInstance.RunPsTest("Test-PoolCRUD");
3837
}
3938

4039
[Fact]
41-
[Trait(Category.AcceptanceType, Category.CheckIn)]
4240
public void TestResizeAndStopResizePool()
4341
{
4442
BatchController controller = BatchController.NewInstance;
@@ -60,7 +58,6 @@ public void TestResizeAndStopResizePool()
6058
}
6159

6260
[Fact]
63-
[Trait(Category.AcceptanceType, Category.CheckIn)]
6461
public void TestAutoScaleActions()
6562
{
6663
BatchController controller = BatchController.NewInstance;
@@ -82,7 +79,6 @@ public void TestAutoScaleActions()
8279
}
8380

8481
[Fact]
85-
[Trait(Category.AcceptanceType, Category.CheckIn)]
8682
public void TestChangeOSVersion()
8783
{
8884
BatchController controller = BatchController.NewInstance;

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

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

2828
[Fact]
29-
[Trait(Category.AcceptanceType, Category.CheckIn)]
3029
public void TestTaskCRUD()
3130
{
3231
BatchController controller = BatchController.NewInstance;
@@ -48,7 +47,6 @@ public void TestTaskCRUD()
4847
}
4948

5049
[Fact]
51-
[Trait(Category.AcceptanceType, Category.CheckIn)]
5250
public void TestCreateTaskCollection()
5351
{
5452
BatchController controller = BatchController.NewInstance;
@@ -70,7 +68,6 @@ public void TestCreateTaskCollection()
7068
}
7169

7270
[Fact]
73-
[Trait(Category.AcceptanceType, Category.CheckIn)]
7471
public void TestTerminateTask()
7572
{
7673
BatchController controller = BatchController.NewInstance;
@@ -97,7 +94,6 @@ public void TestTerminateTask()
9794
}
9895

9996
[Fact]
100-
[Trait(Category.AcceptanceType, Category.CheckIn)]
10197
public void TestListAllSubtasks()
10298
{
10399
BatchController controller = BatchController.NewInstance;

0 commit comments

Comments
 (0)