test(api): add full API test suite with get_keycloak_client async fix

Add 45 API tests covering all 12 post endpoints (CRUD, publish/unpublish) with RBAC policy coverage across guest, user, admin roles.

Fix get_keycloak_client() in deps.py to be async - Dishka's async container requires await on get(), without it a coroutine object was returned instead of the actual client.
This commit is contained in:
2026-05-10 14:08:23 +03:00
parent 448da0396a
commit c9b380c601
7 changed files with 1216 additions and 18 deletions

0
tests/api/__init__.py Normal file
View File