Skip to content
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 Role Mappings REST API test #4450

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

willyborankin
Copy link
Collaborator

Description

Refactor Role Mappings REST API test

Issues Resolved

partial fix #4166

Check List

  • New functionality includes testing
  • New functionality has been documented
  • Commits are signed per the DCO using --signoff

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.

@willyborankin
Copy link
Collaborator Author

willyborankin commented Jun 12, 2024

So far it has a cherry-picked commit from #4433 for roles integration test. With fixes for tests

@willyborankin willyborankin force-pushed the refactor-tests#7 branch 2 times, most recently from ca7acda to db811cd Compare June 14, 2024 13:59
Copy link

codecov bot commented Jun 14, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 65.23%. Comparing base (962eafa) to head (1bf451f).
Report is 6 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4450      +/-   ##
==========================================
- Coverage   65.27%   65.23%   -0.05%     
==========================================
  Files         313      313              
  Lines       22057    22061       +4     
  Branches     3563     3563              
==========================================
- Hits        14398    14391       -7     
- Misses       5888     5896       +8     
- Partials     1771     1774       +3     
Files Coverage Δ
.../security/dlic/rest/api/RolesMappingApiAction.java 94.11% <75.00%> (-2.76%) ⬇️

... and 5 files with indirect coverage changes

Copy link
Member

@DarshitChanpura DarshitChanpura left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look good to me @willyborankin. I left 1 clarifying question.

@DarshitChanpura
Copy link
Member

@willyborankin Would you take a look at the code-cov failures?

@willyborankin
Copy link
Collaborator Author

willyborankin commented Jun 20, 2024

@willyborankin Would you take a look at the code-cov failures?

same as for #4465. codecov/patch shows wrong info about hidden/reserved properties, since they covered in the AbstractConfigEntityApiIntegrationTest
Now it is different. Not sure that it shows right info

@willyborankin
Copy link
Collaborator Author

willyborankin commented Jun 20, 2024

@willyborankin Would you take a look at the code-cov failures?

same as for #4465. codecov/patch shows wrong info about hidden/reserved properties, since they covered in the AbstractConfigEntityApiIntegrationTest Now it is different. Not sure that it shows right info

Interesting:
codecov/project/plugin — 64.97% (-0.04%) compared to 962eafa the coverage failed on 0.04% :-) mm not sure that such difference should affect the check

@willyborankin willyborankin deleted the refactor-tests#7 branch June 23, 2024 16:35
@willyborankin willyborankin restored the refactor-tests#7 branch June 23, 2024 16:36
@willyborankin willyborankin reopened this Jun 23, 2024
@willyborankin willyborankin added the backport 2.x backport to 2.x branch label Jun 24, 2024
Copy link
Contributor

@shikharj05 shikharj05 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @willyborankin ! LGTM 👍

@cwperks cwperks merged commit 6dedfb4 into opensearch-project:main Jun 26, 2024
82 of 84 checks passed
@opensearch-trigger-bot
Copy link
Contributor

The backport to 2.x failed:

The process '/usr/bin/git' failed with exit code 128

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-4450-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 6dedfb455766601b1fdee8e5334cd0905bfe2ed2
# Push it to GitHub
git push --set-upstream origin backport/backport-4450-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 base branch is 2.x and the compare/head branch is backport/backport-4450-to-2.x.

willyborankin added a commit to willyborankin/security that referenced this pull request Jun 26, 2024
Signed-off-by: Andrey Pleskach <[email protected]>
(cherry picked from commit 6dedfb4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x backport to 2.x branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Add posibility to create hidden security entities (roles mapping, roles, etc) via REST API
4 participants