ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colm O hEigeartaigh <cohei...@apache.org>
Subject Review Request 48078: Add tests for the HDFS plugin
Date Tue, 31 May 2016 15:41:56 GMT

This is an automatically generated e-mail. To reply, visit:

Review request for ranger.

Bugs: RANGER-1006

Repository: ranger


Currently, there are no functioning tests in the Ranger source for the HDFS plugin. This task
is to add some tests.

See attached for a patch which uses a custom RangerAdminClient which just reads in some policies
from a file (generated offline using the Admin). A MiniDfsCluster is started using the RangerHdfsAuthorizer
for authorization.


  hdfs-agent/pom.xml f5e42eb 
  hdfs-agent/src/test/java/org/apache/ranger/services/hdfs/HDFSRangerTest.java PRE-CREATION

  hdfs-agent/src/test/java/org/apache/ranger/services/hdfs/HdfsClientTester.java ff2802a 
  hdfs-agent/src/test/java/org/apache/ranger/services/hdfs/RangerAdminClientImpl.java PRE-CREATION

  hdfs-agent/src/test/java/org/apache/ranger/services/hdfs/TestRangerServiceHdfs.java 053fbb8

  hdfs-agent/src/test/resources/hdfs-policies.json PRE-CREATION 
  hdfs-agent/src/test/resources/ranger-hdfs-security.xml PRE-CREATION 

Diff: https://reviews.apache.org/r/48078/diff/



Colm O hEigeartaigh

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message