RealDevSquad / RealDevSquad/website-backend
Add Tests for Obfuscation of Email and Phone in /profileDiff GET API
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 74
- Forks
- 276
- Avg merge
- 1d 26m
- Merged PRs (30d)
- 14
Description
Issue Description
The /profileDiff GET API currently lacks tests to validate the obfuscation of email and phone fields. This omission can lead to potential issues where sensitive user data is returned in plain text, compromising user privacy.
Expected Behavior
The test file for the /profileDiff API should include tests that verify:
- Email and phone fields are correctly obfuscated in the API response.
Current Behavior
There are no existing tests in the test file for the /profileDiff GET API related to the obfuscation of email and phone fields.
Screenshots
(No screenshots available as this is a backend issue)
Reproducibility
- This issue is reproducible
- This issue is not reproducible
Steps to Reproduce
- Review the test file for the
/profileDiffGET API. - Notice the absence of tests for email and phone obfuscation.
Severity/Priority
- Critical
- High
- Medium
- Low
Additional Information
Adding tests for the /profileDiff GET API is essential to ensure that the obfuscation of email and phone fields is consistently validated, thereby enhancing the overall security and privacy of user data.
Checklist
- I have read and followed the project's code of conduct.
- I have searched for similar issues before creating this one.
- I have provided all the necessary information to understand and reproduce the issue.
- I am willing to contribute to the resolution of this issue.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Find the existing test file for the /profileDiff GET API and review its current response assertions. Add coverage showing that email and phone fields are obfuscated in the response, then run the API test suite to confirm those checks pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nodejs
- Domain
- api, backend, security, testing
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100