stack.setResources(resources);
return stack;
}
public static Cluster createCluster(String owner, String account, Blueprint blueprint) {
Cluster cluster = new Cluster();
cluster.setName("test-cluster");
cluster.setDescription("test cluster");
cluster.setEmailNeeded(false);
cluster.setStatus(Status.AVAILABLE);
cluster.setStatusReason("");
cluster.setCreationStarted(123456789L);
cluster.setCreationFinished(223456789L);
cluster.setOwner(owner);
cluster.setAccount(account);
cluster.setBlueprint(blueprint);
return cluster;
}