-
Notifications
You must be signed in to change notification settings - Fork 285
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
Refactor Roles REST API test and partial fix #4166 #4433
Conversation
9257162
to
bad734b
Compare
6c8f8ec
to
681b95c
Compare
src/integrationTest/java/org/opensearch/security/api/RolesRestApiIntegrationTest.java
Show resolved
Hide resolved
681b95c
to
1268770
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4433 +/- ##
==========================================
- Coverage 65.24% 65.23% -0.01%
==========================================
Files 312 312
Lines 22032 22032
Branches 3558 3558
==========================================
- Hits 14374 14372 -2
- Misses 5888 5890 +2
Partials 1770 1770
|
src/integrationTest/java/org/opensearch/security/api/RolesRestApiIntegrationTest.java
Show resolved
Hide resolved
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. Thank you @willyborankin. Thank you for verifying that the new integ test covers the same scenarios as the old integ tests. Its good to see that the coverage goes slightly up and the new code introduced in this PR to allow superadmin to update with "hidden" is also covered.
9fbb7e9
to
e4a0fd6
Compare
f5073d9
to
857df27
Compare
Signed-off-by: Andrey Pleskach <ples@aiven.io>
Signed-off-by: Andrey Pleskach <ples@aiven.io>
Signed-off-by: Andrey Pleskach <ples@aiven.io>
857df27
to
a88c04e
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.
@willyborankin I see some overlap with #4450. Should we combine these into 1 PR?
@DarshitChanpura, Yes I tested #4450 with internal-test fixes I added in this PR. So this one should be merged first. |
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!
The backport to
To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/security/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/security/backport-2.x
# Create a new branch
git switch --create backport/backport-4433-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 962eafab80fac3064de02b76bc956ee031703e0e
# Push it to GitHub
git push --set-upstream origin backport/backport-4433-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/security/backport-2.x Then, create a pull request where the |
…pensearch-project#4433) Signed-off-by: Andrey Pleskach <ples@aiven.io> (cherry picked from commit 962eafa)
Description
Refactor Roles REST API test
Issues Resolved
partial fix #4166
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.