Skip to content

Commit 8877808

Browse files
V2A RCM PowerShell Changes
1 parent 21a948e commit 8877808

File tree

61 files changed

+525269
-653
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+525269
-653
lines changed

src/RecoveryServices/RecoveryServices.SiteRecovery.Test/RecoveryServices.SiteRecovery.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
<PackageReference Include="Microsoft.Azure.Management.Network" Version="20.4.0" />
1616
<PackageReference Include="Microsoft.Azure.Management.RecoveryServices" Version="4.3.1-preview" />
1717
<PackageReference Include="Microsoft.Azure.Management.RecoveryServices.Backup" Version="4.1.5-preview" />
18+
<PackageReference Include="Microsoft.Azure.Management.RecoveryServices.SiteRecovery" Version="2.2.0-preview" />
1819
<PackageReference Include="Microsoft.Azure.Management.Storage" Version="14.3.0" />
19-
<PackageReference Include="Microsoft.Azure.Management.RecoveryServices.SiteRecovery" Version="2.1.2-preview" />
2020
</ItemGroup>
2121

2222
<ItemGroup>

src/RecoveryServices/RecoveryServices.SiteRecovery.Test/ScenarioTests/Constants.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,7 @@ public class Constants
2121
public const string A2AV1VmEndToEnd = "A2AV1VmEndToEnd";
2222
public const string A2AV2VmEndToEndWithAVSet = "A2AV2VmEndToEndWithAvaiabiltySet";
2323
public const string A2AV2RecoveryPlanEndToEnd = "A2AV2RecoveryPlanEndToEnd";
24+
public const string InMageRcmResourceGroupName = "vmwaresrcrg";
25+
public const string InMageRcmResourceName = "v2aRcm-pwsh-test";
2426
}
2527
}
Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
// ----------------------------------------------------------------------------------
14+
15+
using System;
16+
using System.IO;
17+
using Microsoft.Azure.ServiceManagement.Common.Models;
18+
using Microsoft.WindowsAzure.Commands.ScenarioTest;
19+
using Xunit;
20+
using Xunit.Abstractions;
21+
22+
namespace RecoveryServices.SiteRecovery.Test
23+
{
24+
public class AsrV2ARCMTests : AsrV2ARCMTestsBase
25+
{
26+
public XunitTracingInterceptor _logger;
27+
28+
public AsrV2ARCMTests(
29+
ITestOutputHelper output)
30+
{
31+
_logger = new XunitTracingInterceptor(output);
32+
XunitTracingInterceptor.AddToContext(_logger);
33+
this.PowershellFile = Path.Combine(
34+
AppDomain.CurrentDomain.BaseDirectory,
35+
"ScenarioTests", "V2ARCM", "AsrV2ARCMTests.ps1");
36+
this.Initialize();
37+
}
38+
39+
[Fact]
40+
[Trait(Category.AcceptanceType, Category.CheckIn)]
41+
public void TestV2ARCMFabric()
42+
{
43+
this.RunPowerShellTest(_logger, Constants.NewModel, "Test-V2ARCMFabric");
44+
}
45+
46+
[Fact]
47+
[Trait(Category.AcceptanceType, Category.CheckIn)]
48+
public void TestV2ARCMPolicy()
49+
{
50+
this.RunPowerShellTest(_logger, Constants.NewModel, "Test-V2ARCMPolicy");
51+
}
52+
53+
[Fact]
54+
[Trait(Category.AcceptanceType, Category.CheckIn)]
55+
public void TestV2ARCMContainer()
56+
{
57+
this.RunPowerShellTest(_logger, Constants.NewModel, "Test-V2ARCMContainer");
58+
}
59+
60+
[Fact]
61+
[Trait(Category.AcceptanceType, Category.CheckIn)]
62+
public void TestV2ARCMContainerMapping()
63+
{
64+
this.RunPowerShellTest(_logger, Constants.NewModel, "Test-V2ARCMContainerMapping");
65+
}
66+
67+
[Fact]
68+
[Trait(Category.AcceptanceType, Category.CheckIn)]
69+
public void TestV2ARCMEnableDR()
70+
{
71+
this.RunPowerShellTest(_logger, Constants.NewModel, "Test-V2ARCMEnableDR");
72+
}
73+
74+
[Fact]
75+
[Trait(Category.AcceptanceType, Category.CheckIn)]
76+
public void TestV2ARCMUpdateProtection()
77+
{
78+
this.RunPowerShellTest(_logger, Constants.NewModel, "Test-V2ARCMUpdateProtection");
79+
}
80+
81+
[Fact]
82+
[Trait(Category.AcceptanceType, Category.CheckIn)]
83+
public void TestV2ARCMTestFailover()
84+
{
85+
this.RunPowerShellTest(_logger, Constants.NewModel, "Test-V2ARCMTestFailover");
86+
}
87+
88+
[Fact]
89+
[Trait(Category.AcceptanceType, Category.CheckIn)]
90+
public void TestV2ARCMFailover()
91+
{
92+
this.RunPowerShellTest(_logger, Constants.NewModel, "Test-V2ARCMFailover");
93+
}
94+
95+
[Fact]
96+
[Trait(Category.AcceptanceType, Category.CheckIn)]
97+
public void TestV2ARCMCommit()
98+
{
99+
this.RunPowerShellTest(_logger, Constants.NewModel, "Test-V2ARCMCommit");
100+
}
101+
102+
[Fact]
103+
[Trait(Category.AcceptanceType, Category.CheckIn)]
104+
public void TestV2ARCMReprotect()
105+
{
106+
this.RunPowerShellTest(_logger, Constants.NewModel, "Test-V2ARCMReprotect");
107+
}
108+
109+
[Fact]
110+
[Trait(Category.AcceptanceType, Category.CheckIn)]
111+
public void TestV2ARCMFailback()
112+
{
113+
this.RunPowerShellTest(_logger, Constants.NewModel, "Test-V2ARCMFailback");
114+
}
115+
116+
[Fact]
117+
[Trait(Category.AcceptanceType, Category.CheckIn)]
118+
public void TestV2ARCMCancelFailover()
119+
{
120+
this.RunPowerShellTest(_logger, Constants.NewModel, "Test-V2ARCMCancelFailover");
121+
}
122+
123+
[Fact]
124+
[Trait(Category.AcceptanceType, Category.CheckIn)]
125+
public void TestV2ARCMRecoveryPlan()
126+
{
127+
this.RunPowerShellTest(_logger, Constants.NewModel, "Test-V2ARCMRecoveryPlan");
128+
}
129+
}
130+
}

0 commit comments

Comments
 (0)