-
Notifications
You must be signed in to change notification settings - Fork 36
return information that user was banned #520
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
return information that user was banned #520
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.
Looks good just some minor suggestion on text of the error.
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. I would rephrase the message a bit though.
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 with the messaging changes @alexeykazakov proposed.
You need to update the e2e-tests too :)
|
Yeah, I looked only at the registration-service test file and I didn't find anything relevant there. I missed the user-management one - done in codeready-toolchain/toolchain-e2e#1141 |
/retest |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #520 +/- ##
=======================================
Coverage 81.09% 81.09%
=======================================
Files 43 43
Lines 3517 3518 +1
=======================================
+ Hits 2852 2853 +1
Misses 578 578
Partials 87 87
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alexeykazakov, fbm3307, MatousJobanek, metlos, mfrancisc, rajivnathan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
ce4d325
into
codeready-toolchain:master
When user is banned, then instead of returning the "pending approval" state, the reg-service should return a forbidden error with information that the account was banned.
paired PR codeready-toolchain/toolchain-e2e#1141
KUBESAW-267