-
Notifications
You must be signed in to change notification settings - Fork 9
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
Ignore case when comparing the user name #511
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #511 +/- ##
==========================================
- Coverage 84.84% 84.74% -0.10%
==========================================
Files 79 79
Lines 6942 6937 -5
Branches 75 75
==========================================
- Hits 5890 5879 -11
- Misses 736 739 +3
- Partials 316 319 +3 ☔ View full report in Codecov by Sentry. |
We're having some real flakiness issues in |
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.
The rationale itself looks good to me.
However, as everything we do, this requires a companion tests for that use case.
I'll create a PR against the brokers repo to use |
forgot to push some commits or is my browser broken? :) |
Right, my pre-push hook failed because of those weird "directive is unused for linter" errors from Pushed with |
I am unsure if you noticed that the tests are failing (please always check CI after pushing). If they would not anyway, I would have asked for a test illustrating that we don’t check the user name matching anyway, but we already have them to cover that functionality of the code! :) |
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.
Feel free to revert to "request for review" once the tests are fixed, or do not hesitate if you need any help fixing them!
I think now that we moved the logic broker side, we can probably remove the pam service and integration tests, and only rely on the broker
package tests to demonstrate that functionality, as it’s not widespread in the end to end contract term (we expect the external broker to do this work).
I did notice that, but at the bottom of the logs of the CI job I only saw the pam integration tests failing, which are known to be flaky, so I just retried the tests a couple of times. After taking a closer look now, I see that the broker tests are also failing. I will address that. |
8d73725
to
c69735d
Compare
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.
Thanks a lot for the changes! Everything looks good from my end :)
It's the broker's responsibility to do that and authd doesn't know which usernames the provider considers equal, for example if they are case-sensitive or not.
c69735d
to
e91ab76
Compare
Microsoft Entra user names are case insensitive, so we should ignore the case when comparing the user name.
Closes #496
UDENG-4334