Skip to content

Commit 13b4ec2

Browse files
author
dragonfly91
committed
policy tests fixes - pragrawa
1 parent b3defd6 commit 13b4ec2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ $ResourceGroupName = "backuprg"
1616
$ResourceName = "backuprn"
1717
$DataSourceType = "VM"
1818
$Location = "SouthEast Asia"
19-
$PolicyName = "Policy9";
19+
$PolicyName = "Policy10";
2020
$PolicyId = "c87bbada-6e1b-4db2-b76c-9062d28959a4";
2121
$POName = "iaasvmcontainer;dev01testing;dev01testing"
2222
$WorkloadType = "VM"
@@ -94,7 +94,7 @@ function Test-SetAzureBackupProtectionPolicyTests
9494
$policy.ScheduleType = $ScheduleType
9595
$policyNewName = "policy09_new"
9696

97-
$protectionPolicy = New-AzureBackupProtectionPolicy -ProtectionPolicy $policy -NewName $policyNewName
97+
$protectionPolicy = Set-AzureBackupProtectionPolicy -ProtectionPolicy $policy -NewName $policyNewName
9898

9999
Assert-NotNull $protectionPolicy.InstanceId 'InstanceId should not be null'
100100
Assert-NotNull $protectionPolicy.Name 'Name should not be null'

0 commit comments

Comments
 (0)