test(users): add real handler tests for /users endpoints #111

Open
opened 2026-04-22 16:00:50 +00:00 by djalim · 0 comments
Collaborator

Endpoints to test

  • GET /users (#60)
  • POST /users (#61)
  • GET /users/{id} (#62)
  • PUT /users/{id} (#63)
  • DELETE /users/{id} (#64)

Cases to cover

GET /users — 200 list, 200 filtered by idRole, 403 non-admin
POST /users — 201 created, 409 duplicate, 403 non-admin
GET /users/{id} — 200 found, 404 not found, 403 non-admin
PUT /users/{id} — 200 updated, 404 not found, 403 non-admin
DELETE /users/{id} — 204 deleted, 404 not found, 403 non-admin

## Endpoints to test - GET /users (#60) - POST /users (#61) - GET /users/{id} (#62) - PUT /users/{id} (#63) - DELETE /users/{id} (#64) ## Cases to cover **GET /users** — 200 list, 200 filtered by idRole, 403 non-admin **POST /users** — 201 created, 409 duplicate, 403 non-admin **GET /users/{id}** — 200 found, 404 not found, 403 non-admin **PUT /users/{id}** — 200 updated, 404 not found, 403 non-admin **DELETE /users/{id}** — 204 deleted, 404 not found, 403 non-admin
djalim added this to the Module Managment project 2026-04-22 16:01:44 +00:00
djalim changed title from test(promotions): add real handler tests for /promotions endpoints to test(users): add real handler tests for /users endpoints 2026-04-22 23:06:51 +00:00
djalim moved this to ✅ done in Module Managment on 2026-04-26 17:40:16 +00:00
djalim moved this to ⚙️ in progress in Module Managment on 2026-04-26 17:40:24 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: admin/PolyMPR#111