senke
|
3d5edd1ff2
|
[BE-TEST-007] test: Add unit tests for webhook handlers
- Added comprehensive unit tests for all webhook handler methods:
* RegisterWebhook (success, invalid URL, no events, unauthorized)
* ListWebhooks (success)
* DeleteWebhook (success, not found, invalid ID)
* GetWebhookStats (success)
* TestWebhook (success, not found)
* RegenerateAPIKey (success, not found, invalid ID)
- Fixed validation bug in BindAndValidateJSON to properly return errors for binding validation failures
- Fixed compilation errors in profile_handler_test.go and room_handler_test.go
- All tests passing
|
2025-12-25 01:32:54 +01:00 |
|
senke
|
774d78a05d
|
[BE-TEST-004] test: Add unit tests for user/profile handlers
- Created profile_handler_test.go with comprehensive unit tests
- Tests cover GetProfile, GetProfileByUsername, ListUsers, SearchUsers
- Tests cover UpdateProfile, DeleteUser, GetProfileCompletion
- Tests cover FollowUser, UnfollowUser, BlockUser, UnblockUser
- Uses in-memory SQLite database with real services for realistic testing
- All tests compile successfully
Phase: PHASE-5
Priority: P2
Progress: 124/267 (46.4%)
|
2025-12-25 01:27:38 +01:00 |
|