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-29 21:49:16 +08:00
2026-04-07 12:08:16 +08:00
2026-05-29 14:38:08 +08:00
2026-05-28 20:30:24 +08:00
2026-05-29 07:33:19 +08:00
2026-05-29 07:33:19 +08:00
2026-04-17 20:43:50 +08:00
2026-04-11 21:23:52 +08:00
2026-05-28 20:30:24 +08:00
2026-04-11 21:23:52 +08:00
2026-05-30 10:35:55 +08:00
2026-05-28 17:28:08 +08:00
2026-04-18 15:33:12 +08:00
2026-05-28 18:39:56 +08:00
2026-04-18 15:33:12 +08:00
2026-04-18 20:48:11 +08:00
2026-04-11 21:23:52 +08:00
2026-05-30 10:28:36 +08:00
2026-04-11 21:23:52 +08:00
2026-04-17 20:43:50 +08:00
2026-04-11 13:06:58 +08:00
2026-05-29 20:21:07 +08:00
2026-04-17 20:43:50 +08:00
2026-05-28 20:30:24 +08:00
2026-04-17 20:43:50 +08:00
2026-04-11 21:23:52 +08:00
2026-04-17 20:43:50 +08:00
2026-04-11 22:49:13 +08:00
2026-05-30 10:19:50 +08:00
2026-04-11 23:38:43 +08:00
2026-05-30 08:29:16 +08:00
2026-05-28 15:19:13 +08:00
2026-05-28 17:28:08 +08:00
2026-05-28 20:30:24 +08:00