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

Misc changes for tests #4171

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

willyborankin
Copy link
Collaborator

@willyborankin willyborankin commented Mar 26, 2024

Description

Misc changes I extracted from #4153

  • Added hidden/reserved fields for TestSecurityConfig.User, TestSecurityConfig.Role
  • Moved RolesMapping class into TestSecurityConfig
  • Added ActionGroup class in TestSecurityConfig
  • LocalOpenSearchCluster now always delete config folders when any test is over
  • Added bodyAsJsonNode in the HttpResponse class
  • Added hashCode and equals for config classes

Testing

[Please provide details of testing done: unit testing, integration testing and manual testing]

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 willyborankin force-pushed the small-refactoring branch 2 times, most recently from 26bc0f1 to 66e2d45 Compare March 26, 2024 13:53
@willyborankin willyborankin changed the title Small refactoring for tests Misc changes for tests Mar 26, 2024
@willyborankin willyborankin force-pushed the small-refactoring branch 4 times, most recently from 2128ee7 to 2340a8c Compare March 26, 2024 14:15
Copy link

codecov bot commented Mar 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 66.23%. Comparing base (b0d26dd) to head (2cb5709).
Report is 2 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4171      +/-   ##
==========================================
+ Coverage   66.22%   66.23%   +0.01%     
==========================================
  Files         302      302              
  Lines       21698    21698              
  Branches     3501     3501              
==========================================
+ Hits        14369    14372       +3     
+ Misses       5577     5573       -4     
- Partials     1752     1753       +1     

see 2 files with indirect coverage changes

peternied
peternied previously approved these changes Mar 26, 2024
cwperks
cwperks previously approved these changes Mar 26, 2024
@willyborankin willyborankin dismissed stale reviews from cwperks and peternied via 5a0a350 March 26, 2024 15:39
@willyborankin willyborankin force-pushed the small-refactoring branch 2 times, most recently from 5a0a350 to 68c037e Compare March 26, 2024 15:39
peternied
peternied previously approved these changes Mar 26, 2024
- Added hidden/reserved fields for TestSecurityConfig.User, TestSecurityConfig.Role
- Moved RolesMapping class into TestSecurityConfig
- Added ActionGroup class in TestSecurityConfig
- LocalOpenSearchCluster now always delete config folders when any test is over
- Added bodyAsJsonNode in the HttpResponse class
- Added hashCode and equals methods for all TestSecurityConfig internal classes

Signed-off-by: Andrey Pleskach <[email protected]>

oooo

Signed-off-by: Andrey Pleskach <[email protected]>
Copy link
Contributor

@stephen-crawford stephen-crawford left a comment

Choose a reason for hiding this comment

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

Looks great!

@cwperks cwperks added the backport 2.x backport to 2.x branch label Mar 28, 2024
@cwperks cwperks merged commit a870b40 into opensearch-project:main Mar 28, 2024
82 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 28, 2024
Signed-off-by: Andrey Pleskach <[email protected]>
(cherry picked from commit a870b40)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
dlin2028 pushed a commit to dlin2028/security that referenced this pull request May 1, 2024
@willyborankin willyborankin deleted the small-refactoring branch June 14, 2024 19:00
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.

4 participants