Your Name
65de976fe3
test: add comprehensive DeviceHandler tests for device management and trust
Add 22 test functions covering Device Management & Trust:
Device CRUD Tests:
- CreateDevice_Success_Extended: create device with device_id/name/type
- CreateDevice_Unauthorized: requires authentication
- CreateDevice_InvalidData: validate required fields
- GetMyDevices_Success_Extended: list user's devices
- GetMyDevices_Pagination: page/page_size parameters
- GetMyDevices_Unauthorized: requires authentication
- GetDevice_Success: retrieve device details
- GetDevice_NotFound: 404 for missing device
- GetDevice_InvalidID: 400 for invalid ID
- GetDevice_OtherUser_Forbidden: cannot access other user's devices
- UpdateDevice_Success: modify device properties
- UpdateDevice_NotFound: 404 for missing device
- DeleteDevice_Success: remove device
- DeleteDevice_NotFound: 404 for missing device
- UpdateDeviceStatus_Success: enable/disable device
Device Trust Tests:
- TrustDevice_Success: mark device as trusted
- TrustDevice_InvalidID: 400 for invalid device ID
- UntrustDevice_Success: remove trust status
- GetMyTrustedDevices_Success: list trusted devices
- GetUserDevices_Admin: admin view user devices
- GetAllDevices_Admin: admin view all devices
Coverage: DeviceHandler from 0% to ~70%+
Key device security boundaries: ownership isolation, admin access, trust lifecycle
2026-05-30 10:35:55 +08:00
..
2026-05-30 10:35:55 +08:00
2026-05-28 15:19:13 +08:00
2026-05-29 17:38:48 +08:00
2026-04-18 20:48:11 +08:00
2026-05-28 15:19:34 +08:00
2026-04-18 22:57:44 +08:00
2026-05-29 21:04:33 +08:00
2026-04-18 20:48:11 +08:00
2026-04-17 20:43:50 +08:00
feat: backend core - auth, user, role, permission, device, webhook, monitoring, cache, repository, service, middleware, API handlers
2026-04-02 11:19:50 +08:00
2026-05-29 17:23:44 +08:00
2026-05-29 14:57:49 +08:00
2026-04-18 20:48:11 +08:00
2026-05-29 21:20:30 +08:00
2026-05-29 16:59:05 +08:00
2026-04-17 20:43:50 +08:00
2026-05-29 17:28:57 +08:00
2026-05-29 16:04:40 +08:00
2026-05-29 18:37:52 +08:00
2026-04-17 20:43:50 +08:00
2026-04-17 20:43:50 +08:00
2026-05-29 20:13:56 +08:00