Skip to content

Implement rate limit tests for account and share actions - #246

Closed
mspandey wants to merge 1 commit into
Him-an-shi:mainfrom
mspandey:patch-21
Closed

Implement rate limit tests for account and share actions#246
mspandey wants to merge 1 commit into
Him-an-shi:mainfrom
mspandey:patch-21

Conversation

@mspandey

@mspandey mspandey commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Added tests for account deletion and share creation rate limits. ### Description
This pull request expands backend/tests/test_rate_limit.py as requested in Issue #167 to cover critical sensitive endpoints (delete_account and share_create).

Details:

  • TestAccountRateLimit: Added test coverage verifying that hitting the DELETE /delete-account endpoint 4 times within an hour correctly breaches the rate limit and triggers a 429 Too Many Requests status code.
  • TestShareRateLimit: Added test coverage verifying that hitting the POST /share/create endpoint 11 times within an hour correctly breaches the rate limit and triggers a 429 Too Many Requests status code.
  • Robustness: Ensures comprehensive protection against spam and brute-force attacks on high-sensitivity routes across the CI/CD pipeline.

Closes #167

Added tests for account deletion and share creation rate limits.
### Description
This pull request expands `backend/tests/test_rate_limit.py` as requested in [Issue #167](#167) to cover critical sensitive endpoints (`delete_account` and `share_create`).

#### Details:
* **TestAccountRateLimit:** Added test coverage verifying that hitting the `DELETE /delete-account` endpoint 4 times within an hour correctly breaches the rate limit and triggers a `429 Too Many Requests` status code.
* **TestShareRateLimit:** Added test coverage verifying that hitting the `POST /share/create` endpoint 11 times within an hour correctly breaches the rate limit and triggers a `429 Too Many Requests` status code.
* **Robustness:** Ensures comprehensive protection against spam and brute-force attacks on high-sensitivity routes across the CI/CD pipeline.

Closes #167
Copilot AI lite review requested due to automatic review settings August 4, 2026 18:45
@vercel

vercel Bot commented Aug 4, 2026

Copy link
Copy Markdown

@mspandey is attempting to deploy a commit to the himanshipathak-240263-3015's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@mspandey mspandey closed this by deleting the head repository Aug 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(rate_limit): missing coverage for sensitive endpoints (delete_account, share_create)

2 participants