> + final String serverId = server_id = createServerInZone(zone,
> createServerOptions).getId();
> +
> + Set<? extends VolumeAttachment> attachments =
> volumeAttachmentApi.get().listAttachmentsOnServer(serverId).toSet();
> + assertNotNull(attachments);
> +
> +
> assertEquals(volumeApi.get().get(testVolume.getId()).getStatus(),
> Volume.Status.IN_USE);
> +
> + final int before = attachments.size();
> + boolean foundIt = false;
> + for (VolumeAttachment att : attachments) {
> + VolumeAttachment details = volumeAttachmentApi.get()
> + .getAttachmentForVolumeOnServer(att.getVolumeId(),
> serverId);
> + assertNotNull(details);
> + assertNotNull(details.getId());
> + assertNotNull(details.getServerId());
> + assertNotNull(details.getVolumeId());
@jasdeep-hundal Take a look at the checks
[here](https://github.com/jclouds/jclouds/blob/master/apis/openstack-nova/src/test/java/org/jclouds/openstack/nova/v2_0/extensions/VolumeAttachmentApiExpectTest.java#L61).
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/326/files#r16252374