File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
server/src/test/java/org/apache/cloudstack/backup Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1536,6 +1536,7 @@ public void testDeleteBackupBlockedByPendingJobs() {
15361536 BackupVO backup = mock (BackupVO .class );
15371537 when (backup .getVmId ()).thenReturn (vmId );
15381538 when (backup .getUuid ()).thenReturn ("backup-uuid" );
1539+ when (backup .getZoneId ()).thenReturn (1L );
15391540 when (backupDao .findByIdIncludingRemoved (backupId )).thenReturn (backup );
15401541
15411542 VMInstanceVO vm = mock (VMInstanceVO .class );
@@ -1546,7 +1547,8 @@ public void testDeleteBackupBlockedByPendingJobs() {
15461547 when (asyncJobManager .countPendingJobs ("backup-uuid" ,
15471548 "org.apache.cloudstack.api.command.user.vm.CreateVMFromBackupCmd" ,
15481549 "org.apache.cloudstack.api.command.admin.vm.CreateVMFromBackupCmdByAdmin" ,
1549- "org.apache.cloudstack.api.command.user.backup.RestoreBackupCmd" )).thenReturn (1L );
1550+ "org.apache.cloudstack.api.command.user.backup.RestoreBackupCmd" ,
1551+ "org.apache.cloudstack.api.command.user.backup.RestoreVolumeFromBackupAndAttachToVMCmd" )).thenReturn (1L );
15501552
15511553 backupManager .deleteBackup (backupId , false );
15521554 }
You can’t perform that action at this time.
0 commit comments