File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -52,12 +52,14 @@ function GetAzureRecoveryPointTest
52
52
$azureBackUpItem.DataSourceId = $DataSourceId
53
53
$azureBackUpItem.Type = $DataSourceType
54
54
$recoveryPoints = Get-AzureBackupRecoveryPoint - item $azureBackUpItem
55
- Assert-NotNull $recoveryPoints ' Recovery Points should not be null'
56
- foreach ($recoveryPoint in $recoveryPoints )
55
+ if (! ($recoveryPoints -eq $null ))
57
56
{
58
- Assert-NotNull $recoveryPoint.RecoveryPointTime ' RecoveryPointTime should not be null'
59
- Assert-NotNull $recoveryPoint.RecoveryPointType ' RecoveryPointType should not be null'
60
- Assert-NotNull $recoveryPoint.RecoveryPointId ' RecoveryPointId should not be null'
57
+ foreach ($recoveryPoint in $recoveryPoints )
58
+ {
59
+ Assert-NotNull $recoveryPoint.RecoveryPointTime ' RecoveryPointTime should not be null'
60
+ Assert-NotNull $recoveryPoint.RecoveryPointType ' RecoveryPointType should not be null'
61
+ Assert-NotNull $recoveryPoint.RecoveryPointId ' RecoveryPointId should not be null'
62
+ }
61
63
}
62
64
}
63
65
You can’t perform that action at this time.
0 commit comments