krishnamuttevi opened a new pull request, #1140: URL: https://github.com/apache/ranger/pull/1140
### Extends the Ranger functional test framework with a generic, suite-driven run-tests.sh runner and adds Pytest coverage for XUserREST and RoleREST Admin APIs. **Refactored run-tests.sh into a reusable orchestration script that any functional test suite can plug into:** Suite registry — ALL_TEST_SUITES lists available Pytest folders; new suites are added by dropping a directory and updating the array Suite classification — separates test-only suites (rolerest, xuserrest, servicerest) from Docker-backed suites (hdfs, kms) so archives and compose files are started only when needed **Interactive and CLI modes —** prompts for DB type and suites, or accepts > ./run-tests.sh [db-type] [suite...] **Conditional Docker setup —** builds Ranger, brings up the base Admin stack _(admin, DB, ZK, Solr, usersync, tagsync, KMS)_, and optionally adds HDFS/Hadoop compose when requested **Environment controls —** `CLEAN_CONTAINERS=1` for full clean build; `RUN_TESTS=0` for infrastructure-only runs **Generic test execution —** loops over requested suites, runs pytest on each existing directory, and generates `report_<suite>.html` per suite ### Pytest suite for Ranger Admin XUserRest APIs: test_user.py — _user CRUD, role assignments, external users_ test_secure_user.py — _secure user CRUD and RBAC_ test_groups.py — _group and group-user management_ test_permission.py — _module permissions_ test_ugsync.py — _user/group sync (LDAP, UNIX, FILE)_ test_utility_fun.py — _lookup, auth sessions, userstore download Includes shared conftest.py, utility/utils.py, and readme.md._ ### Pytest suite for Ranger Admin RoleRest APIs: test_role_management.py — _role CRUD, lookup, service-admin access paths_ test_role_utility_fun.py — _export/import, secure download, membership, grant/revoke_ Includes role-specific utilities, fixtures, and readme.md. ### Other changes pytest.ini — _adds xuserrest, rolerest, and HTTP method markers_ functional-tests/readme.md — _documents suites, env vars, usage, and reports_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
