test(students): add real handler tests for /students endpoints #109

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

Endpoints to test

  • GET /students (#7)
  • POST /students (#8)
  • POST /students/import-csv (#9)
  • GET /students/{numEtud} (#10)
  • PUT /students/{numEtud} (#11)
  • DELETE /students/{numEtud} (#12)

Cases to cover

GET /students — 200 returns full list, 200 filtered by idPromo, 403 if non-employee
POST /students — 201 created, 400 missing fields, 403 if non-employee
POST /students/import-csv — 200 imports valid rows and reports errors, 400 missing file or idPromo, 403 if non-employee
GET /students/{numEtud} — 200 found, 404 not found, 403 if non-employee
PUT /students/{numEtud} — 200 updated, 404 not found, 403 if non-employee
DELETE /students/{numEtud} — 204 deleted, 404 not found, 403 if non-employee

## Endpoints to test - GET /students (#7) - POST /students (#8) - POST /students/import-csv (#9) - GET /students/{numEtud} (#10) - PUT /students/{numEtud} (#11) - DELETE /students/{numEtud} (#12) ## Cases to cover **GET /students** — 200 returns full list, 200 filtered by idPromo, 403 if non-employee **POST /students** — 201 created, 400 missing fields, 403 if non-employee **POST /students/import-csv** — 200 imports valid rows and reports errors, 400 missing file or idPromo, 403 if non-employee **GET /students/{numEtud}** — 200 found, 404 not found, 403 if non-employee **PUT /students/{numEtud}** — 200 updated, 404 not found, 403 if non-employee **DELETE /students/{numEtud}** — 204 deleted, 404 not found, 403 if non-employee
djalim added this to the Module Managment project 2026-04-22 16:01:44 +00:00
djalim moved this to ✅ done in Module Managment on 2026-04-26 17:40:14 +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#109