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);
}
Aggregations