Skip to content

huangpf PR: dev <- Azure:dev #648

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 27, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// limitations under the License.
// ----------------------------------------------------------------------------------

using Microsoft.WindowsAzure.Commands.ScenarioTest;
using Xunit;

namespace Microsoft.Azure.Commands.Batch.Test.ScenarioTests
Expand All @@ -24,42 +25,49 @@ public BatchAccountTests(Xunit.Abstractions.ITestOutputHelper output)
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestGetNonExistingBatchAccount()
{
BatchController.NewInstance.RunPsTest("Test-GetNonExistingBatchAccount");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestCreatesNewBatchAccount()
{
BatchController.NewInstance.RunPsTest("Test-CreatesNewBatchAccount");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestUpdatesExistingBatchAccount()
{
BatchController.NewInstance.RunPsTest("Test-UpdatesExistingBatchAccount");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestGetBatchAccountsUnderResourceGroups()
{
BatchController.NewInstance.RunPsTest("Test-GetBatchAccountsUnderResourceGroups");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestCreateAndRemoveBatchAccountViaPiping()
{
BatchController.NewInstance.RunPsTest("Test-CreateAndRemoveBatchAccountViaPiping");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestBatchAccountKeys()
{
BatchController.NewInstance.RunPsTest("Test-BatchAccountKeys");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestListNodeAgentSkus()
{
BatchController.NewInstance.RunPsTest("Test-GetBatchNodeAgentSkus");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
using Microsoft.Azure.Test;
using Microsoft.WindowsAzure.Commands.Utilities.Common;
using Xunit;
using Microsoft.WindowsAzure.Commands.ScenarioTest;

namespace Microsoft.Azure.Commands.Batch.Test.ScenarioTests
{
Expand All @@ -25,6 +26,7 @@ public class BatchApplicationPackageTests : WindowsAzure.Commands.Test.Utilities
private const string version = "foo";

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestUploadApplicationPackage()
{
string id = "newApplicationPackage";
Expand Down Expand Up @@ -54,6 +56,7 @@ public void TestUploadApplicationPackage()
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestUpdateApplicationPackage()
{
string id = "updateApplicationPackage";
Expand Down Expand Up @@ -83,6 +86,7 @@ public void TestUpdateApplicationPackage()
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestCreatePoolWithApplicationPackage()
{
string id = "createPoolWithApplicationPackage";
Expand Down Expand Up @@ -111,6 +115,7 @@ public void TestCreatePoolWithApplicationPackage()
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestUpdatePoolWithApplicationPackage()
{
string id = "updatePoolWithApplicationPackage";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@
using Microsoft.Azure.Test;
using Microsoft.WindowsAzure.Commands.Utilities.Common;
using Xunit;
using Microsoft.WindowsAzure.Commands.ScenarioTest;

namespace Microsoft.Azure.Commands.Batch.Test.ScenarioTests
{
public class BatchApplicationTests : WindowsAzure.Commands.Test.Utilities.Common.RMTestBase
{
[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestAddApplication()
{
BatchController.NewInstance.RunPsTest(string.Format("Test-AddApplication"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public void TestCertificateCrudOperations()
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestCancelCertificateDelete()
{
BatchController controller = BatchController.NewInstance;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ public ComputeNodeTests(Xunit.Abstractions.ITestOutputHelper output)
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestGetComputeNodeById()
{
BatchController controller = BatchController.NewInstance;
controller.RunPsTest(string.Format("Test-GetComputeNodeById '{0}'", poolId));
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestListComputeNodesByFilter()
{
BatchController controller = BatchController.NewInstance;
Expand Down Expand Up @@ -74,6 +76,7 @@ public void TestGetAndListComputeNodesWithSelect()
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestListComputeNodesWithMaxCount()
{
BatchController controller = BatchController.NewInstance;
Expand All @@ -82,6 +85,7 @@ public void TestListComputeNodesWithMaxCount()
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestListAllComputeNodes()
{
BatchController controller = BatchController.NewInstance;
Expand All @@ -100,6 +104,7 @@ public void TestListAllComputeNodes()
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestListComputeNodePipeline()
{
BatchController controller = BatchController.NewInstance;
Expand All @@ -118,6 +123,7 @@ public void TestListComputeNodePipeline()
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestRemoveComputeNodeById()
{
TestRemoveComputeNode(usePipeline: false, testMethodName: TestUtilities.GetCurrentMethodName());
Expand All @@ -131,6 +137,7 @@ public void TestRemoveComputeNodePipeline()
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestRemoveMultipleComputeNodes()
{
BatchController controller = BatchController.NewInstance;
Expand Down Expand Up @@ -158,48 +165,56 @@ public void TestRemoveMultipleComputeNodes()
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestRebootComputeNodeById()
{
TestRebootComputeNode(usePipeline: false, testMethodName: TestUtilities.GetCurrentMethodName());
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestRebootComputeNodePipeline()
{
TestRebootComputeNode(usePipeline: true, testMethodName: TestUtilities.GetCurrentMethodName());
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestReimageComputeNodeById()
{
TestReimageComputeNode(usePipeline: false, testMethodName: TestUtilities.GetCurrentMethodName());
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestReimageComputeNodePipeline()
{
TestReimageComputeNode(usePipeline: true, testMethodName: TestUtilities.GetCurrentMethodName());
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestDisableAndEnableComputeNodeSchedulingById()
{
TestDisableAndEnableComputeNodeScheduling(usePipeline: false, testMethodName: TestUtilities.GetCurrentMethodName());
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestDisableAndEnableComputeNodeSchedulingPipeline()
{
TestDisableAndEnableComputeNodeScheduling(usePipeline: true, testMethodName: TestUtilities.GetCurrentMethodName());
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestGetComputeNodeRemoteLoginSettingsById()
{
TestGetComputeNodeRemoteLoginSettings(usePipeline: false, testMethodName: TestUtilities.GetCurrentMethodName());
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestGetComputeNodeRemoteLoginSettingsPipeline()
{
TestGetComputeNodeRemoteLoginSettings(usePipeline: true, testMethodName: TestUtilities.GetCurrentMethodName());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public ComputeNodeUserTests(Xunit.Abstractions.ITestOutputHelper output)
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestCreateComputeNodeUser()
{
BatchController controller = BatchController.NewInstance;
Expand Down Expand Up @@ -69,6 +70,7 @@ public void TestCreateComputeNodeUserPipeline()
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestUpdateComputeNodeUser()
{
BatchController controller = BatchController.NewInstance;
Expand Down
Loading