Search in sources :

Example 6 with RestResponseStatus

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

the class EntityLevelAccessIT method assertAnalystCantAccessFeeds.

private void assertAnalystCantAccessFeeds() {
    LOG.debug("EntityLevelAccessIT.assertAnalystCantAccessFeeds");
    runAs(ANALYST);
    Response response = getFeedsExpectingStatus(HTTP_FORBIDDEN);
    RestResponseStatus status = response.as(RestResponseStatus.class);
    Assert.assertEquals("Not authorized to perform the action: Access Feeds", status.getMessage());
}
Also used : Response(com.jayway.restassured.response.Response) RestResponseStatus(com.thinkbiganalytics.rest.model.RestResponseStatus)

Aggregations

RestResponseStatus (com.thinkbiganalytics.rest.model.RestResponseStatus)6 Response (com.jayway.restassured.response.Response)3 ApiOperation (io.swagger.annotations.ApiOperation)3 ApiResponses (io.swagger.annotations.ApiResponses)3 GET (javax.ws.rs.GET)3 Path (javax.ws.rs.Path)3 Produces (javax.ws.rs.Produces)3 CleanupStaleFeedRevisions (com.thinkbiganalytics.feedmgr.nifi.CleanupStaleFeedRevisions)1 AlignNiFiComponents (com.thinkbiganalytics.nifi.rest.client.layout.AlignNiFiComponents)1 AlignProcessGroupComponents (com.thinkbiganalytics.nifi.rest.client.layout.AlignProcessGroupComponents)1 List (java.util.List)1 BadRequestException (javax.ws.rs.BadRequestException)1 NotFoundException (javax.ws.rs.NotFoundException)1 ControllerServiceDTO (org.apache.nifi.web.api.dto.ControllerServiceDTO)1 ProcessGroupDTO (org.apache.nifi.web.api.dto.ProcessGroupDTO)1 ControllerServiceReferencingComponentsEntity (org.apache.nifi.web.api.entity.ControllerServiceReferencingComponentsEntity)1 DataAccessException (org.springframework.dao.DataAccessException)1