-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat(router): implement ApiKeyInterface
for MockDb
#1101
feat(router): implement ApiKeyInterface
for MockDb
#1101
Conversation
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.
Other than that, looks good to me!
Thanks for the PR, @derekleverenz!
ApiKeyInterface
for MockDb
…renz/hyperswitch into fix-996-mockdb-apikeyinterface
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.
Other than that, looks good to me!
Edit: Also, please address the CI checks. It's fine to allow the clippy::unwrap_used
lint in the tests module.
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.
Looks good to me!
Thanks again for the PR, @derekleverenz!
@derekleverenz can we have your twitter / LinkedIn handles? Would love to give you a shoutout! |
Sure! Im @Coaxmetal on twitter and https://www.linkedin.com/in/derek-leverenz-b0787858/ at linkedin |
Thanks! Can you please enable tagging on LinkedIn, we are unable to tag your profile |
Ah yep, should be enabled now |
Type of Change
Description
Stores API keys in a vector in
MockDB
.Additional Changes
Motivation and Context
Resolves #996.
How did you test it?
Wrote a unit test (included in the PR, but ignored). It passes locally if I make some unrelated changes to allow the test to run without needing redis, but I have it ignored for now because of that (the tests can probably be removed too, they arent vital just wanted to verify it worked)
Checklist
cargo +nightly fmt --all
cargo clippy