public void testAllocationStateStatic() { UpdatePodOptions options = allocationState(AllocationState.ENABLED); assertEquals(ImmutableList.of("Enabled"), options.buildQueryParameters().get("allocationstate")); }
public void testEndIpStatic() { UpdatePodOptions options = endIp("192.168.42.52"); assertEquals(ImmutableList.of("192.168.42.52"), options.buildQueryParameters().get("endip")); }
public void testGatewayStatic() { UpdatePodOptions options = gateway("192.168.42.62"); assertEquals(ImmutableList.of("192.168.42.62"), options.buildQueryParameters().get("gateway")); }
.netmask("255.255.255.128") .name("richard-updatepod") .startIp("172.21.0.129")
.netmask("255.255.255.128") .name("richard-updatepod") .startIp("172.21.0.129")
@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); }
@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); }
public void testStartIpStatic() { UpdatePodOptions options = startIp("192.168.42.42"); assertEquals(ImmutableList.of("192.168.42.42"), options.buildQueryParameters().get("startip")); }
public void testNetmaskStatic() { UpdatePodOptions options = netmask("255.255.240.0"); assertEquals(ImmutableList.of("255.255.240.0"), options.buildQueryParameters().get("netmask")); }
public void testNameStatic() { UpdatePodOptions options = name("fred"); assertEquals(ImmutableList.of("fred"), options.buildQueryParameters().get("name")); }
public void testStartIpStatic() { UpdatePodOptions options = startIp("192.168.42.42"); assertEquals(ImmutableList.of("192.168.42.42"), options.buildQueryParameters().get("startip")); }
public void testGatewayStatic() { UpdatePodOptions options = gateway("192.168.42.62"); assertEquals(ImmutableList.of("192.168.42.62"), options.buildQueryParameters().get("gateway")); }
public void testNameStatic() { UpdatePodOptions options = name("fred"); assertEquals(ImmutableList.of("fred"), options.buildQueryParameters().get("name")); }
public void testEndIpStatic() { UpdatePodOptions options = endIp("192.168.42.52"); assertEquals(ImmutableList.of("192.168.42.52"), options.buildQueryParameters().get("endip")); }
public void testNetmaskStatic() { UpdatePodOptions options = netmask("255.255.240.0"); assertEquals(ImmutableList.of("255.255.240.0"), options.buildQueryParameters().get("netmask")); }
public void testAllocationStateStatic() { UpdatePodOptions options = allocationState(AllocationState.ENABLED); assertEquals(ImmutableList.of("Enabled"), options.buildQueryParameters().get("allocationstate")); }