Skip to content

[Backport 2.x] testComplianceEnable supports variable number of audit messages#1924

Merged
peternied merged 1 commit into2.xfrom
backport/backport-1920-to-2.x
Jun 29, 2022
Merged

[Backport 2.x] testComplianceEnable supports variable number of audit messages#1924
peternied merged 1 commit into2.xfrom
backport/backport-1920-to-2.x

Conversation

@opensearch-trigger-bot
Copy link
Copy Markdown
Contributor

Backport 1904db5 from #1920

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)
@opensearch-trigger-bot opensearch-trigger-bot bot requested a review from a team June 29, 2022 19:22
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jun 29, 2022

Codecov Report

Merging #1924 (8ae263e) into 2.x (ee225b7) will increase coverage by 0.08%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##                2.x    #1924      +/-   ##
============================================
+ Coverage     60.95%   61.04%   +0.08%     
- Complexity     3231     3236       +5     
============================================
  Files           256      256              
  Lines         18087    18088       +1     
  Branches       3224     3224              
============================================
+ Hits          11025    11041      +16     
+ Misses         5478     5467      -11     
+ Partials       1584     1580       -4     
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%) ⬆️
...security/auditlog/sink/ExternalOpenSearchSink.java 61.72% <0.00%> (+2.46%) ⬆️
...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%) ⬆️

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...8ae263e. Read the comment docs.

@peternied peternied self-assigned this Jun 29, 2022
@peternied
Copy link
Copy Markdown
Member

peternied commented Jun 29, 2022

Ran into a new blocking failure, restarting the tests.

TenantInfoActionTest.testTenantInfoAPIAccess
TenantInfoActionTest.testTenantInfoAPIAccess
TenantInfoActionTest.testTenantInfoAPIAccess
TenantInfoActionTest.testTenantInfoAPIAccess
TenantInfoActionTest.testTenantInfoAPIAccess
TenantInfoActionTest.testTenantInfoAPIAccess

HttpIntegrationTests.testTenantInfo
HttpIntegrationTests.testTenantInfo
LegacyTenantInfoActionTests.testTenantInfoAPIUpdate

@peternied peternied merged commit e0bfd80 into 2.x Jun 29, 2022
@peternied peternied deleted the backport/backport-1920-to-2.x branch June 29, 2022 22:04
wuychn pushed a commit to ochprince/security that referenced this pull request Mar 16, 2023
…search-project#1920) (opensearch-project#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>
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.

2 participants