Backend Test Report: Inbox API
Test Date: Pending Environment: Development (localhost:5000) Tenant: thaiscada
At a Glance
| Metric | Value |
|---|---|
| Total Tests | - |
| Passed | - |
| Failed | - |
| Pass Rate | Pending |
Results Summary
| Section | Endpoint | Tests | Status |
|---|---|---|---|
| 1. Get Inbox | GET /api/inbox | - | Pending |
| 2. Unread Count | GET /api/inbox/unread-count | - | Pending |
| 3. Mark Read | POST /api/inbox/mark-read | - | Pending |
| 4. Mark Unread | POST /api/inbox/mark-unread | - | Pending |
| 5. Archive | POST /api/inbox/archive | - | Pending |
| 6. Mark Read by Task | POST /api/inbox/mark-read-by-task | - | Pending |
| 7. Announcements | POST /api/inbox/announcements | - | Pending |
What We Tested
This report covers the Inbox API - the system that handles:
- Get Inbox - How notifications are listed for the current user
- Unread Count - How unread notification count is retrieved
- Mark Read/Unread - How individual notifications are toggled
- Archive - How notifications are archived
- Mark Read by Task - How all notifications for a task are marked as read
- Announcements - How admin-created announcements are broadcast (admin only)
Authorization Matrix
| Endpoint | Policy | Admin | Safety Officer | Contractor |
|---|---|---|---|---|
| Get Inbox | realm-basic | - | - | - |
| Unread Count | realm-basic | - | - | - |
| Mark Read | realm-basic | - | - | - |
| Mark Unread | realm-basic | - | - | - |
| Archive | realm-basic | - | - | - |
| Mark Read by Task | realm-basic | - | - | - |
| Announcements | tenant-admin | - | - | - |
Detailed Results
Tests pending. See
backend/tests/http/inbox/inbox.httpfor test definitions.