Package org.jclouds.abiquo.domain.task

Examples of org.jclouds.abiquo.domain.task.VirtualMachineTask


   @Test(dependsOnMethods = "testReorderNics")
   public void testDetachNics() {
      List<Ip<?, ?>> nics = Lists.newArrayList(env.virtualMachine.listAttachedNics());

      VirtualMachineTask task = env.virtualMachine.setNics(Lists.<Ip<?, ?>> newArrayList(nics.get(1), nics.get(2)));
      assertNull(task);

      nics = Lists.newArrayList(env.virtualMachine.listAttachedNics());
      assertEquals(nics.size(), 2);
      assertEquals(nics.get(0).getId(), privateIp.getId());
View Full Code Here


      env.virtualDatacenter.update();

      try {
         VirtualMachine vm = env.virtualAppliance.getVirtualMachine(env.virtualMachine.getId());
         vm.setCpu(7);
         VirtualMachineTask task = vm.update(true);

         assertNull(task);
         assertEquals(vm.getCpu().intValue(), 7);
      } finally {
         env.virtualDatacenter.setCpuCountHardLimit(originalHard);
View Full Code Here

TOP

Related Classes of org.jclouds.abiquo.domain.task.VirtualMachineTask

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.