jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zack Shoylev <notificati...@github.com>
Subject Re: [jclouds-labs-openstack] Adds support for Floating IP (#135)
Date Thu, 28 Aug 2014 23:41:39 GMT
> +            network = networkApi.create(
> +                  Network.createOptions("jclouds-network-test").external(true).networkType(NetworkType.LOCAL).build());
> +            assertNotNull(network);
> +
> +            ipv4SubnetId = subnetApi.create(Subnet.createOptions(network.getId(), "198.51.100.0/24").ipVersion(4)
> +                  .name("JClouds-Live-IPv4-Subnet").build()).getId();
> +
> +            floatingIPApi.create(FloatingIP.createOptions(network.getId()).build());
> +
> +         /* List and Get test */
> +            Set<FloatingIP> floatingIPs = floatingIPApi.list().concat().toSet();
> +            FloatingIP floatingIPList = floatingIPs.iterator().next();
> +            floatingIPGet = floatingIPApi.get(floatingIPList.getId());
> +
> +            assertNotNull(floatingIPGet);
> +            assertEquals(floatingIPGet, floatingIPList);

I am not sure about this?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/135/files#r16875102
Mime
View raw message