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