-
Notifications
You must be signed in to change notification settings - Fork 27
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
Test Origin Login APIs #154
Test Origin Login APIs #154
Conversation
This is a unit test for the origin login api's. This effectively tests: 1. Code-based login when no password is set 2. Password reset API 3. Password-based login API 4. "whoami" API The tests have been ran on both windows and in a linux container and shows everything running successfully.
Changing the reviewer over to Emma. |
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.
LG except for possibly some changes in how temp files are being created and the addition of two more test cases as discussed in the specific comments.
I added 2 new tests per Emma's request. In addition I also discovered fatal errors with the test itself. I noticed I forgot to add a `m.Run()` line to my TestMain() so the tests were not actually running. Once adding this the tests were failing because I was setting up the handles multiple times. So instead of configuring origin ui every time I just reconfigure the AuthDB whenever I add a user.
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.
LGTM!
This is a unit test for the origin login api's. The tests have been ran on both windows and in a linux container and shows everything running successfully. This effectively tests: