Skip to content

Commit

Permalink
Adding the new paramaters zone/placementGroupId to ForceRecoveryServi…
Browse files Browse the repository at this point in the history
…ceFabricPlatformUpdateDomainWalk (#25897)
  • Loading branch information
avjai authored Jan 14, 2022
1 parent 67d080f commit dc9a75a
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 12 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,23 @@ private void TestVMScaleSetServiceFabricImpl(MockContext context)
string rgName = "crptestrgr97ryo0ni";
string vmssName = "crptesthtn39hve";

var response = m_CrpClient.VirtualMachineScaleSets.ForceRecoveryServiceFabricPlatformUpdateDomainWalk(rgName, vmssName, 0);
var response = m_CrpClient.VirtualMachineScaleSets.ForceRecoveryServiceFabricPlatformUpdateDomainWalk(rgName, vmssName, 0, string.Empty, string.Empty);

Assert.True(response.WalkPerformed);
Assert.Equal(1, response.NextPlatformUpdateDomain);
response = m_CrpClient.VirtualMachineScaleSets.ForceRecoveryServiceFabricPlatformUpdateDomainWalk(rgName, vmssName, 1);
response = m_CrpClient.VirtualMachineScaleSets.ForceRecoveryServiceFabricPlatformUpdateDomainWalk(rgName, vmssName, 1, string.Empty, string.Empty);
Assert.True(response.WalkPerformed);
Assert.Equal(2, response.NextPlatformUpdateDomain);
response = m_CrpClient.VirtualMachineScaleSets.ForceRecoveryServiceFabricPlatformUpdateDomainWalk(rgName, vmssName, 2);
response = m_CrpClient.VirtualMachineScaleSets.ForceRecoveryServiceFabricPlatformUpdateDomainWalk(rgName, vmssName, 2, string.Empty, string.Empty);
Assert.True(response.WalkPerformed);
Assert.Equal(3, response.NextPlatformUpdateDomain);
response= m_CrpClient.VirtualMachineScaleSets.ForceRecoveryServiceFabricPlatformUpdateDomainWalk(rgName, vmssName, 3);
response= m_CrpClient.VirtualMachineScaleSets.ForceRecoveryServiceFabricPlatformUpdateDomainWalk(rgName, vmssName, 3, string.Empty, string.Empty);
Assert.True(response.WalkPerformed);
Assert.Equal(4, response.NextPlatformUpdateDomain);
response = m_CrpClient.VirtualMachineScaleSets.ForceRecoveryServiceFabricPlatformUpdateDomainWalk(rgName, vmssName, 4);
response = m_CrpClient.VirtualMachineScaleSets.ForceRecoveryServiceFabricPlatformUpdateDomainWalk(rgName, vmssName, 4, string.Empty, string.Empty);
Assert.True(response.WalkPerformed);
Assert.Equal(5, response.NextPlatformUpdateDomain);
response = m_CrpClient.VirtualMachineScaleSets.ForceRecoveryServiceFabricPlatformUpdateDomainWalk(rgName, vmssName, 5);
response = m_CrpClient.VirtualMachineScaleSets.ForceRecoveryServiceFabricPlatformUpdateDomainWalk(rgName, vmssName, 5, string.Empty, string.Empty);
Assert.True(response.WalkPerformed);
Assert.Null(response.NextPlatformUpdateDomain);
}
Expand Down

0 comments on commit dc9a75a

Please sign in to comment.