public static Stack createStack(String owner, String account, Template template, Credential credential, Set<Resource> resources) {
return createStack(owner, account, template, credential, createCluster(owner, account), resources);
}
public static Stack createStack(String owner, String account, Template template, Credential credential, Cluster cluster, Set<Resource> resources) {
Stack stack = new Stack();
stack.setAmbariIp("168.192.12.13");
stack.setCredential(credential);
stack.setNodeCount(2);
stack.setMetadataReady(true);
stack.setOwner(owner);
stack.setAccount(account);
stack.setTemplate(template);
stack.setCluster(cluster);
stack.setPublicInAccount(true);
stack.setResources(resources);
return stack;
}