Search in sources :

Example 6 with ResourceLookupContext

use of org.apache.ranger.plugin.service.ResourceLookupContext in project ranger by apache.

the class TestServiceREST method test13lookupResource.

@Test
public void test13lookupResource() throws Exception {
    String serviceName = "HDFS_1";
    ResourceLookupContext context = new ResourceLookupContext();
    context.setResourceName(serviceName);
    context.setUserInput("HDFS");
    List<String> list = serviceREST.lookupResource(serviceName, context);
    Assert.assertNotNull(list);
}
Also used : ResourceLookupContext(org.apache.ranger.plugin.service.ResourceLookupContext) VXString(org.apache.ranger.view.VXString) Test(org.junit.Test)

Aggregations

ResourceLookupContext (org.apache.ranger.plugin.service.ResourceLookupContext)6 Test (org.junit.Test)5 ArrayList (java.util.ArrayList)3 RangerService (org.apache.ranger.plugin.model.RangerService)1 RangerServiceDef (org.apache.ranger.plugin.model.RangerServiceDef)1 VXString (org.apache.ranger.view.VXString)1 Before (org.junit.Before)1