use of io.syndesis.qe.pages.customizations.connectors.wizard.steps.UploadSwaggerSpecification in project syndesis-qe by syndesisio.
the class TodoSteps method createNewTodoApiConnector.
@When("^upload TODO API swagger from URL$")
public void createNewTodoApiConnector() {
if (OpenShiftUtils.getInstance().getRoute("todo2") == null || !OpenShiftUtils.getInstance().getRoute("todo2").getSpec().getHost().equals("/")) {
TodoUtils.createDefaultRouteForTodo("todo2", "/");
}
String host = "http://" + OpenShiftUtils.getInstance().getRoute("todo2").getSpec().getHost();
String url = host + "/swagger.json";
new UploadSwaggerSpecification().upload("url", url);
}
Aggregations