-
Notifications
You must be signed in to change notification settings - Fork 275
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
Fixed use of rolesMappingConfiguration in InternalUsersApiActionValidationTest #4744
Fixed use of rolesMappingConfiguration in InternalUsersApiActionValidationTest #4744
Conversation
…ationTest Signed-off-by: Nils Bandener <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4744 +/- ##
==========================================
+ Coverage 65.22% 65.54% +0.32%
==========================================
Files 318 319 +1
Lines 22327 22470 +143
Branches 3591 3604 +13
==========================================
+ Hits 14562 14728 +166
+ Misses 5967 5932 -35
- Partials 1798 1810 +12 |
My understanding is that reserved roles can be assigned, but that the test is pertaining to If its not possible to create a |
Good point, removing the part! |
… is no such functionality Signed-off-by: Nils Bandener <[email protected]>
Yes, it operate mostly on role mapping docs, but it is part of the internal users API. That's what confuses me a bit. |
…ationTest (#4744) Signed-off-by: Nils Bandener <[email protected]> (cherry picked from commit a62e99a) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
While working on #4546, I encountered weird behavior in InternalUsersApiActionValidationTest. Closer analysis revealed that the behavior came from the fact that the test erroneously parsed a roles mapping JSON config as
CType.ROLES
and not asCType.ROLESMAPPING
.I have now switched the config type to
CType.ROLESMAPPING
.This has a couple of consequences:
static
property, so it cannot be marked as such.InternalUsersApiActionValidationTest.validateSecurityRolesWithImmutableRolesMappingConfig
, last assert.Side note: To be honest, I am a bit confused by the test
validateSecurityRolesWithImmutableRolesMappingConfig
- why should have a user no reserved roles or static roles assigned? Despite the change, the test demonstrates that reserved roles cannot be assigned.Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.