public void testGetImageById() throws Exception {
for (String zoneId : api.getConfiguredZones()) {
ImageApi imageApi = api.getImageApiForZone(zoneId);
Set<? extends Image> response = imageApi.listInDetail().concat().toSet();
for (Image image : response) {
Image details = imageApi.get(image.getId());
assertNotNull(details);
assertEquals(details.getId(), image.getId());
assertEquals(details.getName(), image.getName());
assertEquals(details.getLinks(), image.getLinks());
assertEquals(details.getCreated(), image.getCreated());
assertEquals(details.getMinDisk(), image.getMinDisk());
assertEquals(details.getMinRam(), image.getMinRam());
assertEquals(details.getProgress(), image.getProgress());
assertEquals(details.getStatus(), image.getStatus());
assertEquals(details.getServer(), image.getServer());
assertEquals(details.getTenantId(), image.getTenantId());
assertEquals(details.getUpdated(), image.getUpdated());
assertEquals(details.getUserId(), image.getUserId());
}
}
}