-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Mock OTP and phone numbers #7565
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
Conversation
* | ||
* Validates if a given object represents a valid phone and OTP pair | ||
*/ | ||
class MockNumber extends Validator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is MockNumber
a good name here?
For me it's not descriptive enough...
but it's a tricky one
Some ideas:
MockPhoneOTPList
MockSMSAuthConfiguration
OTPTestingConfiguration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, this validator is confusing, if we have flat parameters, we can avoid this altogether
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MockPhoneOTPList makes most sense to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's solve this with solution for improving endpoint to make the parameter granular
* | ||
* Validates if a given object represents a valid phone and OTP pair | ||
*/ | ||
class MockNumber extends Validator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, this validator is confusing, if we have flat parameters, we can avoid this altogether
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's fix the endpoint for adding mock number during QA. Merging now to proceed to QA
What does this PR do?
(Provide a description of what this PR does and why it's needed.)
Test Plan
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Screenshots may also be helpful.)
Related PRs and Issues
Checklist