Examples of Pod


Examples of org.jclouds.cloudstack.domain.Pod

      assertEquals(pod.getAllocationState(), AllocationState.ENABLED);
   }

   @Test(dependsOnMethods = "testCreatePod")
   public void testUpdatePod() {
      Pod updated = globalAdminClient.getPodClient().updatePod(pod.getId(), UpdatePodOptions.Builder
         .name(prefix + "-updatedpod")
         .startIp("172.21.0.129")
         .endIp("172.21.0.250")
         .gateway("172.21.0.254")
         .netmask("255.255.255.128")
         .allocationState(AllocationState.DISABLED)
      );

      assertNotNull(updated);
      assertEquals(updated.getName(), prefix + "-updatedpod");
      assertEquals(updated.getZoneId(), zone.getId());
      assertEquals(updated.getZoneName(), prefix + "-zone");
      assertEquals(updated.getStartIp(), "172.21.0.129");
      assertEquals(updated.getEndIp(), "172.21.0.250");
      assertEquals(updated.getGateway(), "172.21.0.254");
      assertEquals(updated.getNetmask(), "255.255.255.128");
      assertEquals(updated.getAllocationState(), AllocationState.DISABLED);
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.