DaanHoogland commented on code in PR #12644:
URL: https://github.com/apache/cloudstack/pull/12644#discussion_r2813933939
##########
plugins/hypervisors/kvm/src/test/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtRestoreBackupCommandWrapperTest.java:
##########
@@ -407,7 +408,7 @@ public void testExecuteWithAttachVolumeFailure() throws
Exception {
PrimaryDataStoreTO primaryDataStore =
Mockito.mock(PrimaryDataStoreTO.class);
when(command.getRestoreVolumePools()).thenReturn(Arrays.asList(primaryDataStore));
when(command.getRestoreVolumePaths()).thenReturn(Arrays.asList("/var/lib/libvirt/images/volume-123"));
- when(command.getRestoreVolumeUUID()).thenReturn("volume-123");
+
when(command.getBackupVolumesUUIDs()).thenReturn(Collections.singletonList("volume-123"));
Review Comment:
```suggestion
when(command.getBackupVolumesUUIDs()).thenReturn(Collections.singletonList("volume-123"));
when(command.getBackupFiles()).thenReturn(Arrays.asList("volume-123"));
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]