Skip to content

Commit

Permalink
Azure site recovery powershell release after moving to version 2021-0…
Browse files Browse the repository at this point in the history
…2-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 <arpgup@microsoft.com>
Co-authored-by: subashchandra31 <subash.chandra@microsoft.com>
Co-authored-by: subashchandra31 <66659771+subashchandra31@users.noreply.github.com>
Co-authored-by: Arpitaji <78065343+Arpitaji@users.noreply.github.com>
Co-authored-by: Vidyadhari Jami <vijami@microsoft.com>
Co-authored-by: vidyadharijami <57709079+vidyadharijami@users.noreply.github.com>
Co-authored-by: prmyaka <prmyaka@microsoft.com>

* 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 <arpgup@microsoft.com>
Co-authored-by: subashchandra31 <subash.chandra@microsoft.com>
Co-authored-by: subashchandra31 <66659771+subashchandra31@users.noreply.github.com>
Co-authored-by: Arpitaji <78065343+Arpitaji@users.noreply.github.com>
Co-authored-by: Vidyadhari Jami <vijami@microsoft.com>
Co-authored-by: vidyadharijami <57709079+vidyadharijami@users.noreply.github.com>
Co-authored-by: prmyaka <prmyaka@microsoft.com>
  • Loading branch information
8 people authored Apr 29, 2021
1 parent 92f57a4 commit 5e0f466
Show file tree
Hide file tree
Showing 124 changed files with 1,022,522 additions and 147,657 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<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.Storage" Version="14.3.0" />
<PackageReference Include="Microsoft.Azure.Management.RecoveryServices.SiteRecovery" Version="2.1.2-preview" />
<PackageReference Include="Microsoft.Azure.Management.RecoveryServices.SiteRecovery" Version="2.1.4-preview" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,28 @@ function getVaultName{
return "A2APowershellTest" + $seed;
}

# vault resource group.
function getVaultRg{
return "A2APowershellTestRg" + $seed;
}


function getVaultRgLocation{
return "eastus"
return "WestCentralUS"
}

function getVaultLocation{
return "eastus"
return "WestCentralUS"
}

function getPrimaryLocation
{
return "westus"
return "EastUS"
}

function getPrimaryZoneLocation
{
return "southeastasia"
return "EastUS"
}

function getPrimaryZone
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,22 +61,22 @@ public void TestNewA2AManagedDiskReplicationConfigWithCmk()
this.RunPowerShellTest(_logger, Constants.NewModel, "Test-NewA2AManagedDiskReplicationConfigurationWithCmk");
}

#if NETSTANDARD
[Fact(Skip = "Needs investigation, TestManagementClientHelper class wasn't initialized with the ResourceManagementClient client.")]
#else
//#if NETSTANDARD
// [Fact(Skip = "Needs investigation, TestManagementClientHelper class wasn't initialized with the ResourceManagementClient client.")]
//#else
[Fact]
#endif
//#endif
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void A2ANewAsrFabric()
{
this.RunPowerShellTest(_logger, Constants.NewModel, "Test-NewAsrFabric");
}

#if NETSTANDARD
[Fact(Skip = "Needs investigation, TestManagementClientHelper class wasn't initialized with the ResourceManagementClient client.")]
#else
//#if NETSTANDARD
// [Fact(Skip = "Needs investigation, TestManagementClientHelper class wasn't initialized with the ResourceManagementClient client.")]
//#else
[Fact]
#endif
//#endif
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void A2ATestNewContainer()
{
Expand Down Expand Up @@ -117,5 +117,12 @@ public void A2ARecoveryPlanReplication()
{
this.RunPowerShellTest(_logger, Constants.NewModel, "Test-RecoveryPlanReplication");
}

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

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,6 @@ public void TestPlannedFailover()
Category.CheckIn)]
public void TestUpdateRPIWithDES()
{
this.VaultSettingsFilePath = System.IO.Path.Combine(
System.AppDomain.CurrentDomain.BaseDirectory,
"ScenarioTests", "B2A", "CMKInput", "B2A.VaultCredentials");
this.RunPowerShellTest(
_logger,
Constants.NewModel,
Expand All @@ -141,15 +138,12 @@ public void TestUpdateRPIWithDES()
[Trait(
Category.AcceptanceType,
Category.CheckIn)]
public void TestCreateRPIWithPPG()
public void TestCreateRPIWithAdditionalProperties()
{
this.VaultSettingsFilePath = System.IO.Path.Combine(
System.AppDomain.CurrentDomain.BaseDirectory,
"ScenarioTests", "B2A", "B2AInput", "B2A.VaultCredentials");
this.RunPowerShellTest(
_logger,
Constants.NewModel,
"Test-CreateRPIWithProximityPlacementGroup -vaultSettingsFilePath \"" +
"Test-CreateRPIWithAdditionalProperties -vaultSettingsFilePath \"" +
this.VaultSettingsFilePath +
"\"");
}
Expand All @@ -158,15 +152,12 @@ public void TestCreateRPIWithPPG()
[Trait(
Category.AcceptanceType,
Category.CheckIn)]
public void TestUpdateRPIWithPPG()
public void TestUpdateRPIWithAdditionalProperties()
{
this.VaultSettingsFilePath = System.IO.Path.Combine(
System.AppDomain.CurrentDomain.BaseDirectory,
"ScenarioTests", "B2A", "B2AInput", "B2A.VaultCredentials");
this.RunPowerShellTest(
_logger,
Constants.NewModel,
"Test-UpdateRPIWithProximityPlacementGroup -vaultSettingsFilePath \"" +
"Test-UpdateRPIWithAdditionalProperties -vaultSettingsFilePath \"" +
this.VaultSettingsFilePath +
"\"");
}
Expand All @@ -177,9 +168,6 @@ public void TestUpdateRPIWithPPG()
Category.CheckIn)]
public void TestCreateRPIWithAvZone()
{
this.VaultSettingsFilePath = System.IO.Path.Combine(
System.AppDomain.CurrentDomain.BaseDirectory,
"ScenarioTests", "B2A", "B2AInput", "B2A.VaultCredentials");
this.RunPowerShellTest(
_logger,
Constants.NewModel,
Expand All @@ -194,32 +182,12 @@ public void TestCreateRPIWithAvZone()
Category.CheckIn)]
public void TestUpdateRPIWithAvZone()
{
this.VaultSettingsFilePath = System.IO.Path.Combine(
System.AppDomain.CurrentDomain.BaseDirectory,
"ScenarioTests", "B2A", "B2AInput", "B2A.VaultCredentials");
this.RunPowerShellTest(
_logger,
Constants.NewModel,
"Test-UpdateRPIWithAvailabilityZone -vaultSettingsFilePath \"" +
this.VaultSettingsFilePath +
"\"");
}

[Fact]
[Trait(
Category.AcceptanceType,
Category.CheckIn)]
public void TestCreateRPIWithManagedDisk()
{
this.VaultSettingsFilePath = System.IO.Path.Combine(
System.AppDomain.CurrentDomain.BaseDirectory,
"ScenarioTests", "B2A", "B2AInput", "B2A.VaultCredentials");
this.RunPowerShellTest(
_logger,
Constants.NewModel,
"Test-CreateRPIWithManagedDisk -vaultSettingsFilePath \"" +
this.VaultSettingsFilePath +
"\"");
}
}
}
Loading

0 comments on commit 5e0f466

Please sign in to comment.