jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jasdeep-hundal <notificati...@github.com>
Subject Re: [jclouds] JCLOUDS-514: Add ability to attach block volumes at boot through the Nova ServerApi (#326)
Date Wed, 27 Aug 2014 00:09:24 GMT
>  
> +            assertTrue(foundIt, "Failed to find the attachment we set in listAttachments()
response");
> +
> +            volumeAttachmentApi.get().detachVolumeFromServer(testVolume.getId(), serverId);
> +            assertTrue(retry(new Predicate<VolumeAttachmentApi>() {
> +               public boolean apply(VolumeAttachmentApi volumeAttachmentApi) {
> +                  return volumeAttachmentApi.listAttachmentsOnServer(serverId).size()
== before - 1;
> +               }
> +            }, 60 * 1000L).apply(volumeAttachmentApi.get()));

No idea what I was thinking here, looking over the API docs, the detach volume from server
function should only return when the volume has successfully detached. Fixed in latest commit.

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