Skip to content

Commit 9799ca5

Browse files
committed
Changed parameter name for some cmdlt.
1 parent 3c75347 commit 9799ca5

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupTests.ps1

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function GetAzureRecoveryPointTest
5454
$azureBackUpItem.ContainerType = $ContainerType
5555
$azureBackUpItem.DataSourceId = $DataSourceId
5656
$azureBackUpItem.Type = $DataSourceType
57-
$recoveryPoints = Get-AzureBackupRecoveryPoint -item $azureBackUpItem
57+
$recoveryPoints = Get-AzureBackupRecoveryPoint -Item $azureBackUpItem
5858
if (!($recoveryPoints -eq $null))
5959
{
6060
foreach($recoveryPoint in $recoveryPoints)
@@ -73,7 +73,7 @@ function Test-GetAzureBackupItemTests
7373
$azureBackUpContainer.Location = $Location
7474
$azureBackUpContainer.ContainerUniqueName = $ContainerName
7575
$azureBackUpContainer.ContainerType = $ContainerType
76-
$item = Get-AzureBackupItem -container $azureBackUpContainer
76+
$item = Get-AzureBackupItem -Container $azureBackUpContainer
7777
if (!($item -eq $null))
7878
{
7979
foreach($backupitem in $item)
@@ -82,10 +82,10 @@ function Test-GetAzureBackupItemTests
8282
Assert-NotNull $backupitem.Name 'Name should not be null'
8383
Assert-NotNull $backupitem.Type 'Type should not be null'
8484
Assert-NotNull $backupitem.ContainerType 'ContainerType should not be null'
85-
Assert-NotNull $backupitem.ContainerUniqueName 'ContainerUniqueName should not be null'
86-
Assert-NotNull $backupitem.ResourceGroupName 'ResourceGroupName should not be null'
87-
Assert-NotNull $backupitem.ResourceName 'ResourceName should not be null'
88-
Assert-NotNull $backupitem.Location 'Location should not be null'
85+
Assert-NotNull $backupitem.ContainerUniqueName 'ContainerUniqueName should not be null'
86+
Assert-NotNull $backupitem.ResourceGroupName 'ResourceGroupName should not be null'
87+
Assert-NotNull $backupitem.ResourceName 'ResourceName should not be null'
88+
Assert-NotNull $backupitem.Location 'Location should not be null'
8989
}
9090
}
9191
}
@@ -112,12 +112,11 @@ function Test-EnableDisableAzureBackupProtectionTest
112112
$azureBackUpItem.Type = $DataSourceType
113113
$azureBackUpItem.Name = $POName
114114

115-
$jobId = Enable-AzureBackupProtection -item $azureBackUpItem -Policy $policy
115+
$jobId = Enable-AzureBackupProtection -Item $azureBackUpItem -Policy $policy
116116
sleep(20)
117-
$jobId1 = Disable-AzureBackupProtection -item $azureBackUpItem
117+
$jobId1 = Disable-AzureBackupProtection -Item $azureBackUpItem
118118
sleep(20)
119-
$jobId2 = Enable-AzureBackupProtection -item $azureBackUpItem -Policy $policy
120-
}
119+
$jobId2 = Enable-AzureBackupProtection -Item $azureBackUpItem -Policy $policy
121120
}
122121

123122
function BackUpAzureBackUpItemTest
@@ -130,7 +129,7 @@ function BackUpAzureBackUpItemTest
130129
$azureBackUpItem.ContainerType = $ContainerType
131130
$azureBackUpItem.DataSourceId = $DataSourceId
132131
$azureBackUpItem.Type = $DataSourceType
133-
$jobId = Backup-AzureBackupItem -item $azureBackUpItem
132+
$jobId = Backup-AzureBackupItem -Item $azureBackUpItem
134133
}
135134

136135

0 commit comments

Comments
 (0)