You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by Sailaja Polavarapu <sp...@hortonworks.com> on 2016/01/05 20:32:46 UTC

Review Request 41942: Ranger-734: Add unit tests for Urser sync module in Ranger

-----------------------------------------------------------
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