Skip to content

Commit b1c9599

Browse files
committed
Merge pull request #40 from AsrOneSdk/sriramvu-dev
couple of corrections in test
2 parents 8bb31e3 + 45d62f5 commit b1c9599

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices.Test/ScenarioTests/RecoveryServicesTests.ps1

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function Test-E2E_DeleteAndDissociate
8181
if ($Validate_ProfileDissociation_JobSucceeded -eq $true)
8282
{
8383
WaitForJobCompletion -JobId $job.ID -NumOfSecondsToWait 600
84-
$job = Get-AzureSiteRecoveryJob -Id $job.ID
84+
$job = Get-AzureSiteRecoveryJob -Id $job.ID
8585
Assert-True { $job.State -eq "Succeeded" }
8686
}
8787

@@ -127,7 +127,7 @@ function Test-E2E_CreateAndAssociate
127127
}
128128

129129
# we have got second pc as well create profile and associate
130-
$pp = New-AzureSiteRecoveryProtectionProfile -ReplicationProvider HyperVReplica -ReplicationMethod Online -ReplicationFrequencyInSeconds 300 -RecoveryPoints 1 -ApplicationConsistentSnapshotFrequencyInHours 1 -CompressionEnabled -ReplicationPort 8083 -Authentication Kerberos -AllowReplicaDeletion
130+
$pp = New-AzureSiteRecoveryProtectionProfileObject -ReplicationProvider HyperVReplica -ReplicationMethod Online -ReplicationFrequencyInSeconds 300 -RecoveryPoints 1 -ApplicationConsistentSnapshotFrequencyInHours 1 -CompressionEnabled -ReplicationPort 8083 -Authentication Kerberos -AllowReplicaDeletion
131131

132132
$job = Start-AzureSiteRecoveryProtectionProfileAssociationJob -ProtectionProfile $pp -PrimaryProtectionContainer $priPC -RecoveryProtectionContainer $protectionContainer
133133

@@ -547,13 +547,9 @@ function Test-Failback
547547
{
548548
Assert-NotNull($protectionEntity.Name)
549549
Assert-NotNull($protectionEntity.ID)
550-
Write-Host "Checking PE"
551-
$protectionEntity
552550
if ($protectionEntity.CanFailover -eq $true -and $protectionEntity.ActiveLocation -eq "Recovery")
553551
{
554-
Write-Host "Firing failback"
555-
556-
$job = Start-AzureSiteRecoveryPlannedFailoverJob -Direction RecoveryToPrimary -Optimize ForDowntime -ProtectionEntity $protectionEntity -WaitForCompletion
552+
$job = Start-AzureSiteRecoveryPlannedFailoverJob -Direction RecoveryToPrimary -ProtectionEntity $protectionEntity -WaitForCompletion
557553

558554
# Validate_Failback_JobSucceeded
559555
if ($Validate_Failback_JobSucceeded -eq $true)

0 commit comments

Comments
 (0)