Skip to content

testComplianceEnable supports variable number of audit messages (#1920) (#1924)#1925

Merged
peternied merged 1 commit into2.1from
2.x
Jun 30, 2022
Merged

testComplianceEnable supports variable number of audit messages (#1920) (#1924)#1925
peternied merged 1 commit into2.1from
2.x

Conversation

@peternied
Copy link
Copy Markdown
Member

Description

Backporting this from 2.x branch

We were seeing test failures where on higher end computers there would
be duplicate audit messages for the index mapping creation. Then when
run inside GitHub Actions there would only be 2 messages. This doesn't
look like an overt product issue, overlogging of requests, but the test
case was not handling it well. Also improved the failure message response
for faster future debugging.

Signed-off-by: Peter Nied petern@amazon.com
(cherry picked from commit 1904db5)

Co-authored-by: Peter Nied petern@amazon.com

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.

… (#1924)

We were seeing test failures where on higher end computers there would
be duplicate audit messages for the index mapping creation.  Then when
run inside GitHub Actions there would only be 2 messages.  This doesn't
look like an overt product issue, overlogging of requests, but the test
case was not handling it well. Also improved the failure message response
for faster future debugging.

Signed-off-by: Peter Nied <petern@amazon.com>
(cherry picked from commit 1904db5)

Co-authored-by: Peter Nied <petern@amazon.com>
@peternied peternied requested a review from a team June 29, 2022 22:06
@peternied
Copy link
Copy Markdown
Member Author

@DarshitChanpura I created this PR because the label for backport 2.1 didn't appear, do you know anything about that?

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jun 29, 2022

Codecov Report

Merging #1925 (e0bfd80) into 2.1 (ee225b7) will increase coverage by 0.09%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##                2.1    #1925      +/-   ##
============================================
+ Coverage     60.95%   61.05%   +0.09%     
- Complexity     3231     3236       +5     
============================================
  Files           256      256              
  Lines         18087    18088       +1     
  Branches       3224     3224              
============================================
+ Hits          11025    11043      +18     
+ Misses         5478     5464      -14     
+ Partials       1584     1581       -3     
Impacted Files Coverage Δ
...ecurity/ssl/rest/SecuritySSLReloadCertsAction.java 85.10% <0.00%> (+0.32%) ⬆️
...earch/security/ssl/util/SSLConnectionTestUtil.java 95.45% <0.00%> (+2.27%) ⬆️
...nsearch/security/dlic/rest/api/AuditApiAction.java 68.08% <0.00%> (+4.25%) ⬆️
...urity/ssl/transport/SecuritySSLNettyTransport.java 66.66% <0.00%> (+4.30%) ⬆️
...urity/ssl/transport/SecuritySSLRequestHandler.java 59.52% <0.00%> (+5.95%) ⬆️
...security/auditlog/sink/InternalOpenSearchSink.java 80.76% <0.00%> (+7.69%) ⬆️
...ecurity/configuration/StaticResourceException.java 25.00% <0.00%> (+25.00%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ee225b7...e0bfd80. Read the comment docs.

@peternied peternied merged commit babd038 into 2.1 Jun 30, 2022
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