senke
|
582dc1c1ea
|
[BE-TEST-011] test: Add integration tests for ownership checks
- Added comprehensive integration tests for ownership middleware:
* Track owner access (should succeed)
* Track non-owner access (should be forbidden)
* Track admin access (should succeed with override)
* Playlist owner access (should succeed)
* Playlist non-owner access (should be forbidden)
* Resource not found (should return 404)
* Unauthenticated access (should return 401)
* Complete flow with multiple resources
- Tests use real services and in-memory database for end-to-end testing
- All tests tagged with integration build tag
|
2025-12-25 01:41:42 +01:00 |
|