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

Review request for ranger, Abhay Kulkarni, Madhan Neethiraj, Mehul Parikh, 
Pradeep Agrawal, Ramesh Mani, Sailaja Polavarapu, and Velmurugan Periasamy.


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


Repository: ranger


Description
-------

Add python based API tests for all the Public V2 REST APIs listed in 
https://ranger.apache.org/apidocs/index.html.

The tests are cover almost all the Public V2 APIs available in Apache Ranger.

The tests are categorised into 5 sections :-
1. Tests for ROLE_SYS_ADMIN user
2. Tests for ROLE_ADMIN_AUDITOR user
3. Tests for ROLE_USER user
4. Tests for ROLE_KEY_ADMIN user
5. Negative test scenarios (for e.g fetch the entities using invalid id, make 
an update request with invalid data etc)

The only input required to run these tests are Ranger Admin Base URL.
There is a common test runner to run these tests, and the test suite is 
specified in the form of a JSON file.
The test runner reads the JSON file, creates the required data in the data 
setup phase,
and runs the tests.
The same test runner can be used to run / automate tests for all the other API 
sections like Asset REST, XUser REST, Plugin REST APIs etc.

Details on how new test suites can be specified / new tests can be added to the 
existing test suite are specified in the README file.


Diffs
-----

  README-API_TESTS.txt PRE-CREATION 
  security-admin/src/test/python_tests/data/public_v2_rest_apis.json 
PRE-CREATION 
  security-admin/src/test/python_tests/data/ranger_admin_details.json 
PRE-CREATION 
  security-admin/src/test/python_tests/test_runner.py PRE-CREATION 
  security-admin/src/test/python_tests/utils.py PRE-CREATION 


Diff: https://reviews.apache.org/r/74800/diff/1/


Testing
-------

Executed the tests against the latest release of Apache Ranger and ensured that 
all the tests are passing.


Thanks,

Abhishek Patil

Reply via email to