Repository navigation
auth: move apiGroup to be a suffix in error messages - #13451
Conversation
|
[test] |
f8630f3 to
1bb07a4
Compare
|
@enj oh I missed that one, sure I want to address everything ;-) |
1bb07a4 to
6fa3224
Compare
|
@enj hope the last commit fixes everything :-) PTAL |
enj
left a comment
There was a problem hiding this comment.
Update comment and unit tests.
| @@ -22,10 +22,5 @@ type RequestInfoFactory interface { | |||
|
|
|||
| // ForbiddenMessageMaker creates a forbidden message from a MessageContext | |||
| @@ -10,16 +10,16 @@ import ( | |||
| func TestDefaultForbiddenMessages(t *testing.T) { | |||
There was a problem hiding this comment.
Add tests that have all valid fields from AttributesRecord filled out per IsResourceRequest and !IsResourceRequest.
This will test the new groups path and will fail in the future if we start using the other fields in the messages.
There was a problem hiding this comment.
i added the test, but keep in mind that eventually we want to get rid of the API group in the message and just use the "human" resource names there, so this test/code will be reworked once again.
The original intent here was to just fix the ordering in messages to match what kube does today ;-)
|
Messages look fine, will leave to Mo to review |
e2b43fd to
925ff43
Compare
925ff43 to
8dec1fa
Compare
|
@enj hopefully plumbed all tests. |
|
Evaluated for origin test up to 8dec1fa |
|
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/384/) (Base Commit: 65e7463) |
|
LGTM 👍 |
|
[merge] |
|
flake (?): #13522 [merge] |
|
Evaluated for origin merge up to 8dec1fa |
|
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/384/) (Base Commit: 49f5489) (Image: devenv-rhel7_6097) |
Fixes: #13445
@smarterclayton @enj PTAL
This will make the error messages in sync with rest of the upstream errors.