Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for /signin endpoint #509

Open
6 tasks done
mridxl opened this issue Jan 27, 2025 · 0 comments · May be fixed by #525
Open
6 tasks done

Add tests for /signin endpoint #509

mridxl opened this issue Jan 27, 2025 · 0 comments · May be fixed by #525
Assignees
Labels
test Denotes code testing or validation

Comments

@mridxl
Copy link
Member

mridxl commented Jan 27, 2025

What is this issue related to?

Enhancement

Description

This issue involves writing comprehensive unit tests for the /signin endpoint to ensure it handles various scenarios correctly, including valid and invalid credentials, missing fields, and server errors.

Expected Behavior

The tests should verify that:

  • The endpoint returns a valid token cookie upon successful authentication.
  • The endpoint returns an appropriate error message for invalid credentials.
  • The endpoint handles missing or malformed input fields correctly.
  • The endpoint responds with the correct status codes for different scenarios.

Current Behavior

Currently, there is only one test for the /signin endpoint

Additional Information (optional)

No response

Confirmation Checklist

  • I have searched for similar issues before creating this one.
  • I have provided all the necessary information to understand and reproduce the issue.
@mridxl mridxl self-assigned this Jan 27, 2025
@mridxl mridxl added the test Denotes code testing or validation label Jan 27, 2025
@mridxl mridxl linked a pull request Feb 4, 2025 that will close this issue
2 tasks
@mridxl mridxl linked a pull request Feb 4, 2025 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Denotes code testing or validation
Projects
None yet
1 participant