litellm/tests/proxy_admin_ui_tests
Ishaan Jaff 1fd437e263
(feat proxy) [beta] add support for organization role based access controls (#6112)
* track LiteLLM_OrganizationMembership

* add add_internal_user_to_organization

* add org membership to schema

* read organization membership when reading user info in auth checks

* add check for valid organization_id

* add test for test_create_new_user_in_organization

* test test_create_new_user_in_organization

* add new ADMIN role

* add test for org admins creating teams

* add test for test_org_admin_create_user_permissions

* test_org_admin_create_user_team_wrong_org_permissions

* test_org_admin_create_user_team_wrong_org_permissions

* fix organization_role_based_access_check

* fix getting user members

* fix TeamBase

* fix types used for use role

* fix type checks

* sync prisma schema

* docs - organization admins

* fix use organization_endpoints for /organization management

* add types for org member endpoints

* fix role name for org admin

* add type for member add response

* add organization/member_add

* add error handling for adding members to an org

* add nice doc string for oranization/member_add

* fix test_create_new_user_in_organization

* linting fix

* use simple route changes

* fix types

* add organization member roles

* add org admin auth checks

* add auth checks for orgs

* test for creating teams as org admin

* simplify org id usage

* fix typo

* test test_org_admin_create_user_team_wrong_org_permissions

* fix type check issue

* code quality fix

* fix schema.prisma
2024-10-09 15:18:18 +05:30
..
e2e_ui_tests (proxy ui) - fix view user pagination (#6094) 2024-10-07 12:31:55 +05:30
package-lock.json [Testing-Proxy] Add E2E Admin UI testing (#5845) 2024-09-23 11:34:42 -07:00
package.json [Testing-Proxy] Add E2E Admin UI testing (#5845) 2024-09-23 11:34:42 -07:00
playwright.config.ts [Testing-Proxy] Add E2E Admin UI testing (#5845) 2024-09-23 11:34:42 -07:00
test_key_management.py Litellm ruff linting enforcement (#5992) 2024-10-01 19:44:20 -04:00
test_role_based_access.py (feat proxy) [beta] add support for organization role based access controls (#6112) 2024-10-09 15:18:18 +05:30
test_sso_sign_in.py Litellm ruff linting enforcement (#5992) 2024-10-01 19:44:20 -04:00
test_usage_endpoints.py Litellm ruff linting enforcement (#5992) 2024-10-01 19:44:20 -04:00