Skip to content
Merged

rpt #34

Changes from all commits
Commits
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 @@ -52,12 +52,14 @@ function GetAzureRecoveryPointTest
$azureBackUpItem.DataSourceId = $DataSourceId
$azureBackUpItem.Type = $DataSourceType
$recoveryPoints = Get-AzureBackupRecoveryPoint -item $azureBackUpItem
Assert-NotNull $recoveryPoints 'Recovery Points should not be null'
foreach($recoveryPoint in $recoveryPoints)
if (!($recoveryPoints -eq $null))
{
Assert-NotNull $recoveryPoint.RecoveryPointTime 'RecoveryPointTime should not be null'
Assert-NotNull $recoveryPoint.RecoveryPointType 'RecoveryPointType should not be null'
Assert-NotNull $recoveryPoint.RecoveryPointId 'RecoveryPointId should not be null'
foreach($recoveryPoint in $recoveryPoints)
{
Assert-NotNull $recoveryPoint.RecoveryPointTime 'RecoveryPointTime should not be null'
Assert-NotNull $recoveryPoint.RecoveryPointType 'RecoveryPointType should not be null'
Assert-NotNull $recoveryPoint.RecoveryPointId 'RecoveryPointId should not be null'
}
}
}

Expand Down