test(promotions): add real handler tests for /promotions endpoints #110

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

Endpoints to test

  • GET /promotions (#13)
  • POST /promotions (#14)
  • GET /promotions/{idPromo} (#15)
  • PUT /promotions/{idPromo} (#16)
  • DELETE /promotions/{idPromo} (#17)

Cases to cover

GET /promotions — 200 list, 403 non-employee
POST /promotions — 201 created, 400 missing fields, 403 non-employee
GET /promotions/{idPromo} — 200 found, 404 not found, 403 non-employee
PUT /promotions/{idPromo} — 200 updated, 404 not found, 403 non-employee
DELETE /promotions/{idPromo} — 204 deleted, 404 not found, 403 non-employee

## Endpoints to test - GET /promotions (#13) - POST /promotions (#14) - GET /promotions/{idPromo} (#15) - PUT /promotions/{idPromo} (#16) - DELETE /promotions/{idPromo} (#17) ## Cases to cover **GET /promotions** — 200 list, 403 non-employee **POST /promotions** — 201 created, 400 missing fields, 403 non-employee **GET /promotions/{idPromo}** — 200 found, 404 not found, 403 non-employee **PUT /promotions/{idPromo}** — 200 updated, 404 not found, 403 non-employee **DELETE /promotions/{idPromo}** — 204 deleted, 404 not found, 403 non-employee
djalim added this to the Module Managment project 2026-04-22 16:01:44 +00:00
djalim changed title from test(roles): add real handler tests for /roles endpoints to test(promotions): add real handler tests for /promotions endpoints 2026-04-22 23:06:51 +00:00
djalim moved this to ✅ done in Module Managment on 2026-04-26 17:40:15 +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#110