Skip to content

Commit 014b84f

Browse files
committed
fix UT
1 parent 84d8f67 commit 014b84f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

server/src/test/java/org/apache/cloudstack/backup/BackupManagerTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ public void tryRestoreVMTestRestoreFails() throws NoTransitionException {
578578
backupManager.tryRestoreVM(backup, vm, offering, "Checking message error.");
579579
fail("An exception is needed.");
580580
} catch (CloudRuntimeException e) {
581-
assertEquals("Error restoring VM from backup [Checking message error.].", e.getMessage());
581+
assertEquals("Error restoring Instance from Backup [Checking message error.].", e.getMessage());
582582
}
583583
}
584584
}
@@ -2215,7 +2215,7 @@ public void testRestoreBackupVmNotStopped() {
22152215
CloudRuntimeException exception = Assert.assertThrows(CloudRuntimeException.class,
22162216
() -> backupManager.restoreBackup(backupId));
22172217

2218-
assertEquals("Existing VM should be stopped before being restored from backup", exception.getMessage());
2218+
assertEquals("Existing Instance should be stopped before being restored from Backup", exception.getMessage());
22192219
verify(backupDao, times(1)).findById(backupId);
22202220
verify(vmInstanceDao, times(1)).findByIdIncludingRemoved(vmId);
22212221
}
@@ -2252,7 +2252,7 @@ public void testRestoreBackupVolumeMismatch() {
22522252
CloudRuntimeException exception = Assert.assertThrows(CloudRuntimeException.class,
22532253
() -> backupManager.restoreBackup(backupId));
22542254

2255-
assertEquals("Unable to restore VM with the current backup as the backup has different number of disks as the VM", exception.getMessage());
2255+
assertEquals("Unable to restore Instance with the current Backup as the Backup has different number of disks to the Instance", exception.getMessage());
22562256
}
22572257
verify(backupDao, times(1)).findById(backupId);
22582258
verify(vmInstanceDao, times(1)).findByIdIncludingRemoved(vmId);

0 commit comments

Comments
 (0)