예제 #1
0
 @Test
 public void testPreImportedHostedEngineLunDiskRemove() {
   disk = new LunDisk();
   setupDisk();
   disk.setDiskAlias(StorageConstants.HOSTED_ENGINE_LUN_DISK_ALIAS);
   doReturn(disk).when(cmd).getDisk();
   ValidateTestUtils.runAndAssertValidateSuccess(cmd);
 }
예제 #2
0
 @Test
 public void testImportedHostedEngineLunDiskRemove() {
   vm.setOrigin(OriginType.MANAGED_HOSTED_ENGINE);
   vm.setStatus(VMStatus.Up);
   disk = new LunDisk();
   setupDisk();
   disk.setDiskAlias(StorageConstants.HOSTED_ENGINE_LUN_DISK_ALIAS);
   doReturn(disk).when(cmd).getDisk();
   ValidateTestUtils.runAndAssertValidateSuccess(cmd);
 }