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

Add Tenants REST API test and partial fix #4166 #4465

Merged

Conversation

willyborankin
Copy link
Collaborator

Description

Added Tenants 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.

Copy link

codecov bot commented Jun 14, 2024

Codecov Report

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

Project coverage is 65.27%. Comparing base (962eafa) to head (aa932f5).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4465      +/-   ##
==========================================
- Coverage   65.27%   65.27%   -0.01%     
==========================================
  Files         313      313              
  Lines       22057    22058       +1     
  Branches     3563     3563              
==========================================
  Hits        14398    14398              
- Misses       5888     5889       +1     
  Partials     1771     1771              
Files Coverage Δ
...earch/security/dlic/rest/api/TenantsApiAction.java 38.88% <0.00%> (-2.29%) ⬇️

... and 2 files with indirect coverage changes

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.

Thank you for fixing creation of hidden tenants via API!

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.

Changes look good to me. @willyborankin would you please check why is code-cov complaining?

@willyborankin
Copy link
Collaborator Author

willyborankin commented Jun 20, 2024

Changes look good to me. @willyborankin would you please check why is code-cov complaining?

Well codecov/patch shows wrong info about hidden/reserved properties, since they covered in the AbstractConfigEntityApiIntegrationTest

@willyborankin willyborankin merged commit 1f5bd36 into opensearch-project:main Jun 20, 2024
41 of 42 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jun 20, 2024
Signed-off-by: Andrey Pleskach <[email protected]>
(cherry picked from commit 1f5bd36)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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