// hostname is not predictable based on node metadata
}
public void testResizeRam() throws Exception {
String group = this.group + "ram";
GoGridApi api = view.utils().injector().getInstance(GoGridApi.class);
try {
client.destroyNodesMatching(inGroup(group));
} catch (Exception e) {
}
Predicate<Server> serverLatestJobCompleted = retry(new ServerLatestJobCompleted(api
.getJobServices()), 800, 20, SECONDS);
String ram = get(api.getServerServices().getRamSizes(), 1).getName();
try {
NodeMetadata node = getOnlyElement(client.createNodesInGroup(group, 1));
Server updatedServer = api.getServerServices().editServerRam(Long.valueOf(node.getId()), ram);
assertNotNull(updatedServer);
assert serverLatestJobCompleted.apply(updatedServer);
assertEquals(getLast(api.getServerServices().getServersById(Long.valueOf(node.getId()))).getRam().getName(),
ram);
} finally {
client.destroyNodesMatching(inGroup(group));
}