> + 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());
Can we make these checks more specific? E.g. do we not know what the server or volume IDs should be? --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/326/files#r12544993