use of alien4cloud.rest.component.RecommendationRequest in project alien4cloud by alien4cloud.
the class DefineAsDefaultForCapabilityDefinitionsSteps method I_flag_the_node_type_as_default_for_the_capability.
@Given("^I flag the node type \"([^\"]*)\" as default for the \"([^\"]*)\" capability$")
public // @When("^I flag the node type \"([^\"]*)\" as default for the \"([^\"]*)\" capability$")
void I_flag_the_node_type_as_default_for_the_capability(String componentId, String capability) throws Throwable {
RecommendationRequest recRequest = new RecommendationRequest(componentId, capability);
String jSon = jsonMapper.writeValueAsString(recRequest);
Context.getInstance().registerRestResponse(Context.getRestClientInstance().postJSon("/rest/v1/components/recommendation", jSon));
}
use of alien4cloud.rest.component.RecommendationRequest in project alien4cloud by alien4cloud.
the class DefineAsDefaultForCapabilityDefinitionsSteps method I_unflag_the_node_type_as_default_for_the_capability.
@When("^I unflag the node type \"([^\"]*)\" as default for the \"([^\"]*)\" capability$")
public void I_unflag_the_node_type_as_default_for_the_capability(String componentId, String capability) throws Throwable {
RecommendationRequest recRequest = new RecommendationRequest(componentId, capability);
String jSon = jsonMapper.writeValueAsString(recRequest);
Context.getInstance().registerRestResponse(Context.getRestClientInstance().postJSon("/rest/v1/components/unflag", jSon));
}
Aggregations