Skip to content

Commit 5e0f466

Browse files
nilgupta6Arpitajisubashchandra31vidyadharijamipradheepm
authored
Azure site recovery powershell release after moving to version 2021-02-10 (Azure#14768)
* New api version/asr2021 02 10 (#27) * Fixing PFO/TFO/UFO build errors * mulltiple ip per nic - cmdlet changes * review changes * code review changes * moved validaton to nicConfig cmdlet and review changes * minor fix * handled review comments * parameter validation changes, logs * design review changes * Fixing PFO/TFO/UFO build errors * mulltiple ip per nic - cmdlet changes review changes code review changes moved validaton to nicConfig cmdlet and review changes minor fix handled review comments parameter validation changes, logs design review changes subash's multiple IP per NIC PR changes * Fixing B2A, E2A and E2E Tests and added recording * [ASR][V2A/H2A] TargetVmSize, AvSet, Sql RP and ResourceTagging changes for V2A and H2A * Minor fix * vmss changes -1 * 2) vmss changes - MD files * Addressed review comments and added new tests and recordings for B2A * vmss changes * Addressed review comments * Minor fixes * Added V2A tests and recordings * PR comments * Update New-AzRecoveryServicesAsrReplicationProtectedItem.md * Minor Fix * Adding null for OdataQuery as its default value is also null. * V2A test record json files * Fix for Resource Tagging to clear off tags * Minor fix in playback mode for v2a unit tests Co-authored-by: Arpita Gupta <[email protected]> Co-authored-by: subashchandra31 <[email protected]> Co-authored-by: subashchandra31 <[email protected]> Co-authored-by: Arpitaji <[email protected]> Co-authored-by: Vidyadhari Jami <[email protected]> Co-authored-by: vidyadharijami <[email protected]> Co-authored-by: prmyaka <[email protected]> * Tests tested in playback mode TestNewA2AManagedDiskReplicationConfigWithCmk A2AZoneToZoneRecoveryPlanReplication A2ATestNewContainer A2ARemoveReplicationProtectedItemDisk A2ARecoveryPlanReplication A2ANewAsrFabric vmss test Adding tests TestNewA2AManagedDiskReplicationConfig TestNewA2ADiskReplicationConfig adding ppg test for a2a * help file, PSObject and minor fixes * review comments * null check * updated test and test json * updated changeLog * skip common: v2a event test * updating SDK version * updating tests * adding comments * update online version in help files * update help file * adding breaking change exceptions * updated help file * changing breaking changes in reovery * adding recovery service changes * remove nupkg file * removing vaultcreds * adding recovery service changes * remove nupkg file * removing vaultcreds * V2A test update for linux * update V2A test Co-authored-by: Arpita Gupta <[email protected]> Co-authored-by: subashchandra31 <[email protected]> Co-authored-by: subashchandra31 <[email protected]> Co-authored-by: Arpitaji <[email protected]> Co-authored-by: Vidyadhari Jami <[email protected]> Co-authored-by: vidyadharijami <[email protected]> Co-authored-by: prmyaka <[email protected]>
1 parent 92f57a4 commit 5e0f466

File tree

124 files changed

+1022522
-147657
lines changed

Some content is hidden

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

124 files changed

+1022522
-147657
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
@@ -16,7 +16,7 @@
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" />
1818
<PackageReference Include="Microsoft.Azure.Management.Storage" Version="14.3.0" />
19-
<PackageReference Include="Microsoft.Azure.Management.RecoveryServices.SiteRecovery" Version="2.1.2-preview" />
19+
<PackageReference Include="Microsoft.Azure.Management.RecoveryServices.SiteRecovery" Version="2.1.4-preview" />
2020
</ItemGroup>
2121

2222
<ItemGroup>

src/RecoveryServices/RecoveryServices.SiteRecovery.Test/ScenarioTests/A2A/A2ATestsHelper.ps1

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,28 @@ function getVaultName{
2121
return "A2APowershellTest" + $seed;
2222
}
2323

24+
# vault resource group.
2425
function getVaultRg{
2526
return "A2APowershellTestRg" + $seed;
2627
}
2728

2829

2930
function getVaultRgLocation{
30-
return "eastus"
31+
return "WestCentralUS"
3132
}
3233

3334
function getVaultLocation{
34-
return "eastus"
35+
return "WestCentralUS"
3536
}
3637

3738
function getPrimaryLocation
3839
{
39-
return "westus"
40+
return "EastUS"
4041
}
4142

4243
function getPrimaryZoneLocation
4344
{
44-
return "southeastasia"
45+
return "EastUS"
4546
}
4647

4748
function getPrimaryZone

src/RecoveryServices/RecoveryServices.SiteRecovery.Test/ScenarioTests/A2A/AsrA2ATests.cs

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,22 +61,22 @@ public void TestNewA2AManagedDiskReplicationConfigWithCmk()
6161
this.RunPowerShellTest(_logger, Constants.NewModel, "Test-NewA2AManagedDiskReplicationConfigurationWithCmk");
6262
}
6363

64-
#if NETSTANDARD
65-
[Fact(Skip = "Needs investigation, TestManagementClientHelper class wasn't initialized with the ResourceManagementClient client.")]
66-
#else
64+
//#if NETSTANDARD
65+
// [Fact(Skip = "Needs investigation, TestManagementClientHelper class wasn't initialized with the ResourceManagementClient client.")]
66+
//#else
6767
[Fact]
68-
#endif
68+
//#endif
6969
[Trait(Category.AcceptanceType, Category.CheckIn)]
7070
public void A2ANewAsrFabric()
7171
{
7272
this.RunPowerShellTest(_logger, Constants.NewModel, "Test-NewAsrFabric");
7373
}
7474

75-
#if NETSTANDARD
76-
[Fact(Skip = "Needs investigation, TestManagementClientHelper class wasn't initialized with the ResourceManagementClient client.")]
77-
#else
75+
//#if NETSTANDARD
76+
// [Fact(Skip = "Needs investigation, TestManagementClientHelper class wasn't initialized with the ResourceManagementClient client.")]
77+
//#else
7878
[Fact]
79-
#endif
79+
//#endif
8080
[Trait(Category.AcceptanceType, Category.CheckIn)]
8181
public void A2ATestNewContainer()
8282
{
@@ -117,5 +117,12 @@ public void A2ARecoveryPlanReplication()
117117
{
118118
this.RunPowerShellTest(_logger, Constants.NewModel, "Test-RecoveryPlanReplication");
119119
}
120+
121+
[Fact]
122+
[Trait(Category.AcceptanceType, Category.CheckIn)]
123+
public void A2AVMSSReplication()
124+
{
125+
this.RunPowerShellTest(_logger, Constants.NewModel, "Test-VMSSReplication");
126+
}
120127
}
121128
}

src/RecoveryServices/RecoveryServices.SiteRecovery.Test/ScenarioTests/A2A/AsrA2ATests.ps1

Lines changed: 300 additions & 24 deletions
Large diffs are not rendered by default.

src/RecoveryServices/RecoveryServices.SiteRecovery.Test/ScenarioTests/B2A/AsrB2ATests.cs

Lines changed: 4 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,6 @@ public void TestPlannedFailover()
126126
Category.CheckIn)]
127127
public void TestUpdateRPIWithDES()
128128
{
129-
this.VaultSettingsFilePath = System.IO.Path.Combine(
130-
System.AppDomain.CurrentDomain.BaseDirectory,
131-
"ScenarioTests", "B2A", "CMKInput", "B2A.VaultCredentials");
132129
this.RunPowerShellTest(
133130
_logger,
134131
Constants.NewModel,
@@ -141,15 +138,12 @@ public void TestUpdateRPIWithDES()
141138
[Trait(
142139
Category.AcceptanceType,
143140
Category.CheckIn)]
144-
public void TestCreateRPIWithPPG()
141+
public void TestCreateRPIWithAdditionalProperties()
145142
{
146-
this.VaultSettingsFilePath = System.IO.Path.Combine(
147-
System.AppDomain.CurrentDomain.BaseDirectory,
148-
"ScenarioTests", "B2A", "B2AInput", "B2A.VaultCredentials");
149143
this.RunPowerShellTest(
150144
_logger,
151145
Constants.NewModel,
152-
"Test-CreateRPIWithProximityPlacementGroup -vaultSettingsFilePath \"" +
146+
"Test-CreateRPIWithAdditionalProperties -vaultSettingsFilePath \"" +
153147
this.VaultSettingsFilePath +
154148
"\"");
155149
}
@@ -158,15 +152,12 @@ public void TestCreateRPIWithPPG()
158152
[Trait(
159153
Category.AcceptanceType,
160154
Category.CheckIn)]
161-
public void TestUpdateRPIWithPPG()
155+
public void TestUpdateRPIWithAdditionalProperties()
162156
{
163-
this.VaultSettingsFilePath = System.IO.Path.Combine(
164-
System.AppDomain.CurrentDomain.BaseDirectory,
165-
"ScenarioTests", "B2A", "B2AInput", "B2A.VaultCredentials");
166157
this.RunPowerShellTest(
167158
_logger,
168159
Constants.NewModel,
169-
"Test-UpdateRPIWithProximityPlacementGroup -vaultSettingsFilePath \"" +
160+
"Test-UpdateRPIWithAdditionalProperties -vaultSettingsFilePath \"" +
170161
this.VaultSettingsFilePath +
171162
"\"");
172163
}
@@ -177,9 +168,6 @@ public void TestUpdateRPIWithPPG()
177168
Category.CheckIn)]
178169
public void TestCreateRPIWithAvZone()
179170
{
180-
this.VaultSettingsFilePath = System.IO.Path.Combine(
181-
System.AppDomain.CurrentDomain.BaseDirectory,
182-
"ScenarioTests", "B2A", "B2AInput", "B2A.VaultCredentials");
183171
this.RunPowerShellTest(
184172
_logger,
185173
Constants.NewModel,
@@ -194,32 +182,12 @@ public void TestCreateRPIWithAvZone()
194182
Category.CheckIn)]
195183
public void TestUpdateRPIWithAvZone()
196184
{
197-
this.VaultSettingsFilePath = System.IO.Path.Combine(
198-
System.AppDomain.CurrentDomain.BaseDirectory,
199-
"ScenarioTests", "B2A", "B2AInput", "B2A.VaultCredentials");
200185
this.RunPowerShellTest(
201186
_logger,
202187
Constants.NewModel,
203188
"Test-UpdateRPIWithAvailabilityZone -vaultSettingsFilePath \"" +
204189
this.VaultSettingsFilePath +
205190
"\"");
206191
}
207-
208-
[Fact]
209-
[Trait(
210-
Category.AcceptanceType,
211-
Category.CheckIn)]
212-
public void TestCreateRPIWithManagedDisk()
213-
{
214-
this.VaultSettingsFilePath = System.IO.Path.Combine(
215-
System.AppDomain.CurrentDomain.BaseDirectory,
216-
"ScenarioTests", "B2A", "B2AInput", "B2A.VaultCredentials");
217-
this.RunPowerShellTest(
218-
_logger,
219-
Constants.NewModel,
220-
"Test-CreateRPIWithManagedDisk -vaultSettingsFilePath \"" +
221-
this.VaultSettingsFilePath +
222-
"\"");
223-
}
224192
}
225193
}

0 commit comments

Comments
 (0)