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

SecurityRestFilter, authorizeRequest() audit log tests #3084

Conversation

MaciejMierzwa
Copy link
Contributor

Description

Adding tests for #2700, relevant PR: DarshitChanpura#5. The goal is to test audit logs hit in authorizeRequest() method from SecurityRestFilterExtension class.
Issues Resolved:

#2700

Testing

Integration testing added

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.

Signed-off-by: Maciej Mierzwa <dev.maciej.mierzwa@gmail.com>
@codecov
Copy link

codecov bot commented Aug 2, 2023

Codecov Report

Merging #3084 (527a289) into main (527495d) will decrease coverage by 0.07%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##               main    #3084      +/-   ##
============================================
- Coverage     62.45%   62.39%   -0.07%     
+ Complexity     3353     3348       -5     
============================================
  Files           254      254              
  Lines         19741    19741              
  Branches       3334     3334              
============================================
- Hits          12329    12317      -12     
- Misses         5783     5790       +7     
- Partials       1629     1634       +5     

see 6 files with indirect coverage changes

@peternied
Copy link
Member

Thanks for creating this PR @MaciejMierzwa it looks like there is another issue [1] around audit log scenarios, can you see about completing both with this PR? If not would you want to pick up that other issue as a fast follow up?

@peternied peternied changed the title SecurityRestFilter, authorizeRequest() autit log tests SecurityRestFilter, authorizeRequest() audit log tests Aug 4, 2023
}
}

@Test
public void testWhoAmIPost() throws Exception {
public void testWhoAmIPost() {
Copy link
Member

Choose a reason for hiding this comment

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

👍

@DarshitChanpura DarshitChanpura merged commit 07f791a into opensearch-project:main Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants