Skip to content

V2A RCM PowerShell changes #17

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

Closed
wants to merge 1 commit into from
Closed
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 @@ -15,8 +15,8 @@
<PackageReference Include="Microsoft.Azure.Management.Network" Version="20.4.0" />
<PackageReference Include="Microsoft.Azure.Management.RecoveryServices" Version="4.3.1-preview" />
<PackageReference Include="Microsoft.Azure.Management.RecoveryServices.Backup" Version="4.1.5-preview" />
<PackageReference Include="Microsoft.Azure.Management.RecoveryServices.SiteRecovery" Version="2.2.0-preview" />
<PackageReference Include="Microsoft.Azure.Management.Storage" Version="14.3.0" />
<PackageReference Include="Microsoft.Azure.Management.RecoveryServices.SiteRecovery" Version="2.1.2-preview" />
</ItemGroup>

<ItemGroup>
Expand Down
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