use of org.apache.ranger.tagsync.source.atlasrest.RangerAtlasEntity in project ranger by apache.
the class TestHbaseResourceMapper method testHbaseDottedTable.
@Test
public void testHbaseDottedTable() throws Exception {
Map<String, Object> entAttribs = new HashMap<String, Object>();
entAttribs.put(ENTITY_ATTRIBUTE_QUALIFIED_NAME, DOTTED_TABLE_QUALIFIED_NAME);
RangerAtlasEntity entity = getHbaseTableEntity(entAttribs);
RangerServiceResource resource = resourceMapper.buildResource(entity);
assertTableResource(resource, true);
}
use of org.apache.ranger.tagsync.source.atlasrest.RangerAtlasEntity in project ranger by apache.
the class TestHbaseResourceMapper method testHbaseDottedColumnFamily.
@Test
public void testHbaseDottedColumnFamily() throws Exception {
Map<String, Object> entAttribs = new HashMap<String, Object>();
entAttribs.put(ENTITY_ATTRIBUTE_QUALIFIED_NAME, DOTTED_COLUMN_FAMILY_QUALIFIED_NAME);
RangerAtlasEntity entity = getHbaseColumnFamilyEntity(entAttribs);
RangerServiceResource resource = resourceMapper.buildResource(entity);
assertColumnFamilyResource(resource, true);
}
use of org.apache.ranger.tagsync.source.atlasrest.RangerAtlasEntity in project ranger by apache.
the class TestHbaseResourceMapper method getHbaseNamespaceEntity.
private RangerAtlasEntity getHbaseNamespaceEntity(Map<String, Object> entAttribs) throws Exception {
RangerAtlasEntity entity = Mockito.mock(RangerAtlasEntity.class);
Mockito.when(entity.getTypeName()).thenReturn(AtlasHbaseResourceMapper.ENTITY_TYPE_HBASE_NAMESPACE);
Mockito.when(entity.getAttributes()).thenReturn(entAttribs);
return entity;
}
use of org.apache.ranger.tagsync.source.atlasrest.RangerAtlasEntity in project ranger by apache.
the class TestHbaseResourceMapper method testHbaseColumn.
@Test
public void testHbaseColumn() throws Exception {
Map<String, Object> entAttribs = new HashMap<String, Object>();
entAttribs.put(ENTITY_ATTRIBUTE_QUALIFIED_NAME, COLUMN_QUALIFIED_NAME);
RangerAtlasEntity entity = getHbaseColumnEntity(entAttribs);
RangerServiceResource resource = resourceMapper.buildResource(entity);
assertColumnResource(resource, false);
}
use of org.apache.ranger.tagsync.source.atlasrest.RangerAtlasEntity in project ranger by apache.
the class TestHbaseResourceMapper method testHbaseTable.
@Test
public void testHbaseTable() throws Exception {
Map<String, Object> entAttribs = new HashMap<String, Object>();
entAttribs.put(ENTITY_ATTRIBUTE_QUALIFIED_NAME, TABLE_QUALIFIED_NAME);
RangerAtlasEntity entity = getHbaseTableEntity(entAttribs);
RangerServiceResource resource = resourceMapper.buildResource(entity);
assertTableResource(resource, false);
}
Aggregations