Skip to content
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

Azure site recovery powershell release after moving to version 2021-02-10 #14768

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
74a6960
New api version/asr2021 02 10 (#27)
nilgupta6 Apr 16, 2021
e64c5d8
Tests tested in playback mode
nilgupta6 Apr 18, 2021
8d2adeb
help file, PSObject and minor fixes
subashchandra31 Apr 15, 2021
bb6078f
review comments
subashchandra31 Apr 20, 2021
4c139af
null check
subashchandra31 Apr 20, 2021
ec270be
updated test and test json
subashchandra31 Apr 21, 2021
3da04e4
updated changeLog
subashchandra31 Apr 21, 2021
af61524
skip common: v2a event test
nilgupta6 Apr 22, 2021
a2fb720
updating SDK version
nilgupta6 Apr 23, 2021
72bc316
updating tests
nilgupta6 Apr 23, 2021
49195c9
Merge branch 'master' into newApiVersion/asr2021-02-10-v2
nilgupta6 Apr 26, 2021
358dd87
adding comments
nilgupta6 Apr 26, 2021
e2506cd
update online version in help files
nilgupta6 Apr 26, 2021
96c0868
update help file
nilgupta6 Apr 26, 2021
298dafa
adding breaking change exceptions
nilgupta6 Apr 27, 2021
7359233
updated help file
subashchandra31 Apr 27, 2021
b6bd7f8
Merge branch 'newApiVersion/asr2021-02-10-v2' of https://github.com/A…
subashchandra31 Apr 27, 2021
2b49ae7
changing breaking changes in reovery
nilgupta6 Apr 27, 2021
a3b0ffb
Merge branch 'newApiVersion/asr2021-02-10-v2' of https://github.com/A…
nilgupta6 Apr 27, 2021
de8e5cf
adding recovery service changes
nilgupta6 Apr 28, 2021
cd10157
remove nupkg file
nilgupta6 Apr 28, 2021
3c7806d
removing vaultcreds
nilgupta6 Apr 28, 2021
f5206b1
Merge branch 'newApiVersion/asr2021-02-10-v2' of https://github.com/A…
nilgupta6 Apr 28, 2021
38180c4
adding recovery service changes
nilgupta6 Apr 28, 2021
fa86a26
remove nupkg file
nilgupta6 Apr 28, 2021
f05b2ab
removing vaultcreds
nilgupta6 Apr 28, 2021
1efa884
Merge branch 'newApiVersion/asr2021-02-10-v2' of https://github.com/A…
nilgupta6 Apr 28, 2021
d0174a7
V2A test update for linux
nilgupta6 Apr 28, 2021
607823c
update V2A test
nilgupta6 Apr 28, 2021
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 @@ -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