File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
server/src/test/java/org/apache/cloudstack/vm Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -423,6 +423,7 @@ public void importUnmanagedInstanceTest() {
423423 ImportUnmanagedInstanceCmd importUnmanageInstanceCmd = Mockito .mock (ImportUnmanagedInstanceCmd .class );
424424 when (importUnmanageInstanceCmd .getName ()).thenReturn ("TestInstance" );
425425 when (importUnmanageInstanceCmd .getDomainId ()).thenReturn (null );
426+ when (volumeApiService .doesTargetStorageSupportDiskOffering (any (StoragePool .class ), any ())).thenReturn (true );
426427 try (MockedStatic <UsageEventUtils > ignored = Mockito .mockStatic (UsageEventUtils .class )) {
427428 unmanagedVMsManager .importUnmanagedInstance (importUnmanageInstanceCmd );
428429 }
@@ -780,11 +781,13 @@ public void testImportVmFromVmwareToKvmExistingVcenter() throws OperationTimedou
780781
781782 @ Test
782783 public void testImportVmFromVmwareToKvmExistingVcenterSetConvertHost () throws OperationTimedoutException , AgentUnavailableException {
784+ when (volumeApiService .doesTargetStorageSupportDiskOffering (any (StoragePool .class ), any ())).thenReturn (true );
783785 baseTestImportVmFromVmwareToKvm (VcenterParameter .EXISTING , true , false );
784786 }
785787
786788 @ Test
787789 public void testImportVmFromVmwareToKvmExistingVcenterSetConvertHostAndTemporaryStorage () throws OperationTimedoutException , AgentUnavailableException {
790+ when (volumeApiService .doesTargetStorageSupportDiskOffering (any (StoragePool .class ), any ())).thenReturn (true );
788791 baseTestImportVmFromVmwareToKvm (VcenterParameter .EXISTING , true , true );
789792 }
790793
You can’t perform that action at this time.
0 commit comments