for (String datacenterId : cloudApiContext.getApi().getConfiguredDatacenters()) {
MachineApi api = cloudApiContext.getApi().getMachineApiForDatacenter(datacenterId);
Set<Machine> response = api.list();
assert null != response;
for (Machine machine : response) {
Machine newDetails = api.get(machine.getId());
assertEquals(newDetails.getId(), machine.getId());
assertEquals(newDetails.getName(), machine.getName());
assertEquals(newDetails.getType(), machine.getType());
assertEquals(newDetails.getState(), machine.getState());
assertEquals(newDetails.getDatasetURN(), machine.getDatasetURN());
assertEquals(newDetails.getMemorySizeMb(), machine.getMemorySizeMb());
assertEquals(newDetails.getDiskSizeGb(), machine.getDiskSizeGb());
assertEquals(newDetails.getIps(), machine.getIps());
assertEquals(newDetails.getCreated(), machine.getCreated());
assertEquals(newDetails.getUpdated(), machine.getUpdated());
assertEquals(newDetails.getMetadata(), machine.getMetadata());
}
}
}