Search in sources :

Example 1 with ReportResponse

use of org.openkilda.testing.service.traffexam.model.ReportResponse in project open-kilda by telstra.

the class TraffExamServiceImpl method fetchEndpointReport.

private EndpointReport fetchEndpointReport(Endpoint endpoint) throws NoResultsFoundException, ExamNotFinishedException {
    checkHostRelation(endpoint, suppliedEndpoints);
    ReportResponse report = restTemplate.getForObject(makeHostUri(endpoint.getHost()).path("endpoint/").path(endpoint.getId().toString()).path("/report").build(), ReportResponse.class);
    if (report.getStatus() == null) {
        throw new ExamNotFinishedException();
    }
    return new EndpointReport(report);
}
Also used : ReportResponse(org.openkilda.testing.service.traffexam.model.ReportResponse) EndpointReport(org.openkilda.testing.service.traffexam.model.EndpointReport)

Aggregations

EndpointReport (org.openkilda.testing.service.traffexam.model.EndpointReport)1 ReportResponse (org.openkilda.testing.service.traffexam.model.ReportResponse)1