Skip to content

Add test to check authentication for POST #82

@Emilyempa

Description

@Emilyempa

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).

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions