Search in sources :

Example 1 with ScheduleIdentifier

use of com.thinkbiganalytics.scheduler.rest.model.ScheduleIdentifier in project kylo by Teradata.

the class IntegrationTestBase method triggerSla.

protected RestResponseStatus triggerSla(String slaName) {
    LOG.info("Triggering SLA " + slaName);
    ScheduleIdentifier si = new ScheduleIdentifier();
    si.setName(slaName);
    si.setGroup("SLA");
    Response response = given(SchedulerRestController.V1_SCHEDULER).body(si).when().post("/jobs/trigger");
    response.then().statusCode(HTTP_OK);
    return response.as(RestResponseStatus.class);
}
Also used : Response(com.jayway.restassured.response.Response) ScheduleIdentifier(com.thinkbiganalytics.scheduler.rest.model.ScheduleIdentifier)

Aggregations

Response (com.jayway.restassured.response.Response)1 ScheduleIdentifier (com.thinkbiganalytics.scheduler.rest.model.ScheduleIdentifier)1