Description
Currently, the POST /api/reports endpoint does not have a dedicated test verifying that only authenticated users can access it. To ensure proper security and prevent unauthorized access, we need to add a test case that explicitly checks this behavior.
Acceptance Criteria
A test exists that attempts to call POST /api/reports without authentication and expects a 3xx.
A test exists that calls POST /api/reports with valid authentication and expects a successful response (201 Created or appropriate status).
Description
Currently, the POST /api/reports endpoint does not have a dedicated test verifying that only authenticated users can access it. To ensure proper security and prevent unauthorized access, we need to add a test case that explicitly checks this behavior.
Acceptance Criteria
A test exists that attempts to call POST /api/reports without authentication and expects a 3xx.
A test exists that calls POST /api/reports with valid authentication and expects a successful response (201 Created or appropriate status).