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-for-pod");
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);
}