test(students): add real handler tests for /students endpoints #109
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Endpoints to test
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