igor_nadein
ad8208789f
feat: add LDAP testing infrastructure
- Add LDAP docker container structure (01-base-structure.ldif)
- Add .env.test with LDAP configuration for tests
- Create tests/ldap_fixtures.py with LDAP-specific fixtures
- Create tests/api/v1/employees/test_helpers.py with centralized helpers
- Add LDAP markers to pytest.ini (ldap_required, ldap_optional)
- Add comprehensive LDAP testing documentation
- Fix test_department_head_rights.py to use centralized helpers
New fixtures:
- ldap_available: checks if LDAP server is accessible
- ldap_config: returns LDAP configuration
- ensure_ldap_enabled/disabled: force LDAP state for test
- ldap_cleanup: auto-cleanup LDAP entries after test
New helpers:
- make_user(): centralized user creation
- grant_permission(): permission assignment
- make_department/position/role(): entity creation
- extract_results(): paginated response helper
Infrastructure:
- OU=Users, OU=Departments, OU=Groups, OU=Positions, OU=Dismissed
- Test groups: Developers, Managers
- Test departments: IT, HR
2026-02-16 17:31:48 +03:00
..
2026-02-16 17:22:38 +03:00
2025-09-09 17:55:15 +03:00
2026-02-12 15:59:53 +03:00
2026-02-16 17:07:15 +03:00
2026-01-22 01:33:42 +03:00
2026-02-16 17:31:48 +03:00
2026-01-09 14:56:44 +03:00
2026-02-16 17:22:38 +03:00
2026-02-16 16:21:45 +03:00
2026-01-09 14:48:43 +03:00
2025-11-20 09:00:55 +03:00
2026-01-13 10:19:26 +03:00
2026-01-22 01:33:42 +03:00
2026-01-22 01:33:42 +03:00
2026-02-16 17:31:48 +03:00
2025-09-11 17:56:33 +03:00
2026-02-12 16:04:34 +03:00
2026-02-12 15:59:53 +03:00
2026-02-16 17:31:48 +03:00
2025-07-30 08:15:53 +03:00
2026-01-05 10:47:56 +03:00
2026-01-08 16:14:00 +03:00
2026-02-11 12:52:25 +03:00
2025-11-20 09:00:55 +03:00
2025-09-03 17:17:44 +03:00
2026-02-11 12:52:25 +03:00
2025-07-30 08:15:53 +03:00
2026-01-05 07:41:34 +03:00
2026-02-16 17:31:48 +03:00
2026-01-08 16:14:00 +03:00
2026-01-06 07:48:04 +03:00
2026-02-11 12:52:25 +03:00
2026-02-11 12:52:25 +03:00
2026-01-08 16:55:54 +03:00
2026-01-09 15:07:55 +03:00
2026-01-22 01:33:42 +03:00
2026-01-22 01:33:42 +03:00
2026-01-22 01:33:42 +03:00
2026-02-12 15:59:53 +03:00
2026-01-13 09:18:25 +03:00