Ejemplo n.º 1
0
 @Test
 public void testUpdateElasticityRules() throws IOException {
   RestInterface ri = new RestInterface();
   String serviceID = "ahj";
   String serviceManifest =
       Util.getManifest(
           "/home/ahmed/workspace/optimis/branches/OptimisY3/ElasticityRestInterface/SM2.xml");
   assertEquals(false, ri.updateElasticityRules(serviceID, serviceManifest));
 }
Ejemplo n.º 2
0
 @Test
 public void testStartElasticity() throws IOException {
   RestInterface ri = new RestInterface();
   String serviceID = "ahj";
   String serviceManifest =
       Util.getManifest(
           "/home/ahmed/workspace/optimis/branches/OptimisY3/ElasticityRestInterface/SM.xml");
   boolean LowRiskMode = true;
   String spAddress = "sp";
   assertEquals(false, ri.startElasticity(serviceID, serviceManifest, LowRiskMode, spAddress));
 }