Package com.vmware.bdd.entity.resmgmt

Examples of com.vmware.bdd.entity.resmgmt.ResourceReservation


      }
   }

   @Override
   public UUID reserveResource(String clusterName) {
      ResourceReservation reservation = new ResourceReservation();
      reservation.setClusterName(clusterName);
      return resMgr.reserveResoruce(reservation);
   }
View Full Code Here


      Assert.assertEquals(hosts.size(), 1);
   }

   @Test(groups = { "res-mgmt" })
   public void testReserveResource() {
      ResourceReservation resReservation = new ResourceReservation();
      resReservation.setClusterName("testCluster");
      UUID id = resSvc.reserveResoruce(resReservation);
      Assert.assertNotNull(id);
      resSvc.commitReservation(id);
   }
View Full Code Here

      resSvc.commitReservation(id);
   }

   @Test(groups = { "res-mgmt" },expectedExceptions = VcProviderException.class)
   public void testReserveResourceWithException() {
      ResourceReservation resReservation = new ResourceReservation();
      resReservation.setClusterName("testCluster");
      UUID id = resSvc.reserveResoruce(resReservation);
      Assert.assertNotNull(id);
      resReservation.setClusterName("testCluster2");
      id = resSvc.reserveResoruce(resReservation);

   }
View Full Code Here

   }

   @Test(groups = { "res-mgmt" })
   public void testReserveResourceAndCommitResource() {
      ResourceReservation resReservation = new ResourceReservation();
      resReservation.setClusterName("testCluster");
      UUID id = resSvc.reserveResoruce(resReservation);
      Assert.assertNotNull(id);
      resSvc.commitReservation(id);
   }
View Full Code Here

      resSvc.commitReservation(id);
   }

   @Test(groups = { "res-mgmt" })
   public void testReserveResourceAndCommitResource2() {
      ResourceReservation resReservation = new ResourceReservation();
      resReservation.setClusterName("testCluster");
      UUID id = resSvc.reserveResoruce(resReservation);
      Assert.assertNotNull(id);
      resSvc.commitReservation(id);
      resReservation.setClusterName("testCluster2");
      id = resSvc.reserveResoruce(resReservation);
      Assert.assertNotNull(id);
   }
View Full Code Here

   }


   @Test(groups = { "res-mgmt" })
   public void testReserveResourceAndCancelReservation() {
      ResourceReservation resReservation = new ResourceReservation();
      resReservation.setClusterName("testCluster");
      UUID id = resSvc.reserveResoruce(resReservation);
      Assert.assertNotNull(id);
      resSvc.cancleReservation(id);
   }
View Full Code Here

TOP

Related Classes of com.vmware.bdd.entity.resmgmt.ResourceReservation

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.