test(promotions): add real handler tests for /promotions endpoints #110
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 /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
test(roles): add real handler tests for /roles endpointsto test(promotions): add real handler tests for /promotions endpoints