Skip to content

Commit

Permalink
V2A RCM powershell changes
Browse files Browse the repository at this point in the history
  • Loading branch information
imshashwataggarwal committed May 6, 2021
1 parent 8dd90e9 commit 774e8a9
Show file tree
Hide file tree
Showing 60 changed files with 525,338 additions and 678 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@ public class Constants
public const string A2AV1VmEndToEnd = "A2AV1VmEndToEnd";
public const string A2AV2VmEndToEndWithAVSet = "A2AV2VmEndToEndWithAvaiabiltySet";
public const string A2AV2RecoveryPlanEndToEnd = "A2AV2RecoveryPlanEndToEnd";
public const string InMageRcmResourceGroupName = "vmwaresrcrg";
public const string InMageRcmResourceName = "v2aRcm-pwsh-test";
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// ----------------------------------------------------------------------------------

using System;
using System.IO;
using Microsoft.Azure.ServiceManagement.Common.Models;
using Microsoft.WindowsAzure.Commands.ScenarioTest;
using Xunit;
using Xunit.Abstractions;

namespace RecoveryServices.SiteRecovery.Test
{
public class AsrV2ARCMTests : AsrV2ARCMTestsBase
{
public XunitTracingInterceptor _logger;

public AsrV2ARCMTests(
ITestOutputHelper output)
{
_logger = new XunitTracingInterceptor(output);
XunitTracingInterceptor.AddToContext(_logger);
this.PowershellFile = Path.Combine(
AppDomain.CurrentDomain.BaseDirectory,
"ScenarioTests", "V2ARCM", "AsrV2ARCMTests.ps1");
this.Initialize();
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestV2ARCMFabric()
{
this.RunPowerShellTest(_logger, Constants.NewModel, "Test-V2ARCMFabric");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestV2ARCMPolicy()
{
this.RunPowerShellTest(_logger, Constants.NewModel, "Test-V2ARCMPolicy");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestV2ARCMContainer()
{
this.RunPowerShellTest(_logger, Constants.NewModel, "Test-V2ARCMContainer");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestV2ARCMContainerMapping()
{
this.RunPowerShellTest(_logger, Constants.NewModel, "Test-V2ARCMContainerMapping");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestV2ARCMEnableDR()
{
this.RunPowerShellTest(_logger, Constants.NewModel, "Test-V2ARCMEnableDR");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestV2ARCMUpdateProtection()
{
this.RunPowerShellTest(_logger, Constants.NewModel, "Test-V2ARCMUpdateProtection");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestV2ARCMTestFailover()
{
this.RunPowerShellTest(_logger, Constants.NewModel, "Test-V2ARCMTestFailover");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestV2ARCMFailover()
{
this.RunPowerShellTest(_logger, Constants.NewModel, "Test-V2ARCMFailover");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestV2ARCMCommit()
{
this.RunPowerShellTest(_logger, Constants.NewModel, "Test-V2ARCMCommit");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestV2ARCMReprotect()
{
this.RunPowerShellTest(_logger, Constants.NewModel, "Test-V2ARCMReprotect");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestV2ARCMFailback()
{
this.RunPowerShellTest(_logger, Constants.NewModel, "Test-V2ARCMFailback");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestV2ARCMCancelFailover()
{
this.RunPowerShellTest(_logger, Constants.NewModel, "Test-V2ARCMCancelFailover");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestV2ARCMRecoveryPlan()
{
this.RunPowerShellTest(_logger, Constants.NewModel, "Test-V2ARCMRecoveryPlan");
}
}
}
Loading

0 comments on commit 774e8a9

Please sign in to comment.