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

(Updated June 21, 2023, 10:08 a.m.)


Review request for ranger, Dineshkumar Yadav, Kishor Gollapalliwar, Abhay 
Kulkarni, Madhan Neethiraj, Mehul Parikh, Pradeep Agrawal, Ramesh Mani, sanket 
shelar, Sailaja Polavarapu, and Velmurugan Periasamy.


Bugs: RANGER-4025
    https://issues.apache.org/jira/browse/RANGER-4025


Repository: ranger


Description
-------

Provide API for Roles import/export.


Diffs (updated)
-----

  agents-common/src/main/java/org/apache/ranger/plugin/model/RangerRole.java 
682bbd640 
  pom.xml 9a6667ad2 
  security-admin/src/main/java/org/apache/ranger/biz/RoleDBStore.java 12983688b 
  security-admin/src/main/java/org/apache/ranger/biz/RoleRefUpdater.java 
421b2312d 
  security-admin/src/main/java/org/apache/ranger/biz/ServiceDBStore.java 
1f9801ba2 
  security-admin/src/main/java/org/apache/ranger/rest/RoleREST.java 7fb7d9c79 
  security-admin/src/main/java/org/apache/ranger/rest/ServiceREST.java 
e91d3bc71 
  
security-admin/src/main/java/org/apache/ranger/security/context/RangerPreAuthSecurityHandler.java
 c823fba45 
  security-admin/src/main/java/org/apache/ranger/view/RangerExportRoleList.java 
PRE-CREATION 
  security-admin/src/main/java/org/apache/ranger/view/RangerPolicyList.java 
4799b3f03 
  security-admin/src/main/java/org/apache/ranger/view/RangerRoleList.java 
adbe93db6 
  security-admin/src/test/java/org/apache/ranger/rest/TestRoleREST.java 
217c1bba3 
  security-admin/src/test/java/org/apache/ranger/rest/TestServiceREST.java 
9d17553a4 
  
security-admin/src/test/java/org/apache/ranger/rest/importRole/import_role_test_file.json
 PRE-CREATION 


Diff: https://reviews.apache.org/r/74292/diff/11/

Changes: https://reviews.apache.org/r/74292/diff/10-11/


Testing
-------

Tested the below Rest API's for Roles import/export to make sure everything 
works fine.

RoleREST Rest API :GET /roles/roles/exportJson
RoleREST Rest API :GET 
/roles/roles/exportJson?roleName={rolename},{rolename},....

RoleREST Rest API :GET /roles/roles/importRolesFromFile
RoleREST Rest API :GET /roles/roles/importRolesFromFile?updateIfExists=true
RoleREST Rest API :GET 
/roles/roles/importRolesFromFile?createNonExistUserGroupRole=true


Thanks,

Rakesh Gupta

Reply via email to