ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sailaja Polavarapu" <spolavar...@hortonworks.com>
Subject Review Request 41942: Ranger-734: Add unit tests for Urser sync module in Ranger
Date Tue, 05 Jan 2016 19:32:46 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/41942/
-----------------------------------------------------------

Review request for ranger, Alok Lal, Don Bosco Durai, Abhay Kulkarni, Madhan Neethiraj, Ramesh
Mani, and Velmurugan Periasamy.


Bugs: Ranger-734
    https://issues.apache.org/jira/browse/Ranger-734


Repository: ranger


Description
-------

Currently Ranger's Usersync module doesn't have support to any unit tests. Hence added some
unit tests to cover user sync with ldap. As part of this added an in-memory directory server
using ApacheDS unit test framework to simulate ldap sync test cases.


Diffs
-----

  ugsync/pom.xml d0ecb2f 
  ugsync/src/main/java/org/apache/ranger/unixusersync/config/UserGroupSyncConfig.java 792a05a

  ugsync/src/test/java/org/apache/ranger/usergroupsync/LdapUserGroupTest.java PRE-CREATION

  ugsync/src/test/java/org/apache/ranger/usergroupsync/PolicyMgrUserGroupBuilderTest.java
PRE-CREATION 
  ugsync/src/test/resources/ADSchema.ldif PRE-CREATION 
  ugsync/src/test/resources/ranger-ugsync-site.xml PRE-CREATION 

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


Testing
-------

1. Generated an test ldif file from a running AD server for loading the in-memory directory
server.
2. Added multiple test cases to cover user search filter, group search filter, and enable/disable
paged results.


Thanks,

Sailaja Polavarapu


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