Search in sources :

Example 1 with JobAction

use of com.thinkbiganalytics.jobrepo.repository.rest.model.JobAction in project kylo by Teradata.

the class IntegrationTestBase method failJob.

protected DefaultExecutedJob failJob(DefaultExecutedJob job) {
    Response response = given(JobsRestController.BASE).body(new JobAction()).when().post(String.format("/%s/fail", job.getInstanceId()));
    response.then().statusCode(HTTP_OK);
    return response.as(DefaultExecutedJob.class);
}
Also used : Response(com.jayway.restassured.response.Response) JobAction(com.thinkbiganalytics.jobrepo.repository.rest.model.JobAction)

Aggregations

Response (com.jayway.restassured.response.Response)1 JobAction (com.thinkbiganalytics.jobrepo.repository.rest.model.JobAction)1