jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ignasi Barrera <notificati...@github.com>
Subject Re: [jclouds] adding attache detach interface to nova api (#697)
Date Mon, 02 Mar 2015 14:41:44 GMT
> +         String netId = "727ce2ef-6983-49c2-a404-e11a92e8fd28";
> +         FixedIp fixedIp = FixedIp.builder().subnetId("cf18362d-f117-4598-b32d-edb316f26c3f").ipAddress("11.40.7.22").build();
> +         List<FixedIp> fixIpsLis = new LinkedList<FixedIp>();
> +         fixIpsLis.add(fixedIp);
> +         AttachInterfaceOptions attachInterfaceOptions = AttachInterfaceOptions.Builder.netId(netId).fixedIps(fixIpsLis);
> +         InterfaceAttachment inListenableFuture = interfaceApi.attachInterface("532eff71-c523-4380-aa24-e39695c983a2",
attachInterfaceOptions);
> +         assertNotNull(inListenableFuture);
> +         assertNotNull(inListenableFuture.getMacAddr());
> +         assertEquals(inListenableFuture.getFixedIp(), fixedIp);
> +         assertNotNull(inListenableFuture.getPortId());
> +         assertNotNull(inListenableFuture.getPortState());
> +         assertEquals(inListenableFuture.getNetId(), netId);
> +      }
> +   }
> +
> +   @Test(description = "DELETE /v${apiVersion}/{tenantId}/servers/{server_id}/os-interface/{port_id}\"")

Test execution order is not guaranteed. Configure the test dependency to make sure this is
always executed after the attach tests.

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