use of com.sequenceiq.sdx.api.model.SdxRecipe in project cloudbreak by hortonworks.
the class SdxTestDto method withRecipe.
public SdxTestDto withRecipe(String recipeName, String hostGroup) {
if (CollectionUtils.isEmpty(getRequest().getRecipes())) {
getRequest().setRecipes(new HashSet<>());
}
Set<SdxRecipe> recipes = getRequest().getRecipes();
SdxRecipe sdxRecipe = new SdxRecipe();
sdxRecipe.setName(recipeName);
sdxRecipe.setHostGroup(hostGroup);
recipes.add(sdxRecipe);
return this;
}
use of com.sequenceiq.sdx.api.model.SdxRecipe in project cloudbreak by hortonworks.
the class SdxServiceTest method withRecipe.
private void withRecipe(SdxClusterRequest sdxClusterRequest) {
SdxRecipe recipe = new SdxRecipe();
recipe.setHostGroup("master");
recipe.setName("post-install");
sdxClusterRequest.setRecipes(Set.of(recipe));
}
Aggregations