-
Notifications
You must be signed in to change notification settings - Fork 282
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
Validate requests are not impacted during security cache invalidation #3637
Validate requests are not impacted during security cache invalidation #3637
Conversation
…ated Signed-off-by: Craig Perkins <[email protected]>
Signed-off-by: Craig Perkins <[email protected]>
src/integrationTest/java/org/opensearch/test/framework/TestSecurityConfig.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Craig Perkins <[email protected]>
To replicate the OptionalDataException you need to revert the 2 changes in the PR description and also change every instance of
|
Signed-off-by: Craig Perkins <[email protected]>
src/integrationTest/java/org/opensearch/test/framework/TestSecurityConfig.java
Outdated
Show resolved
Hide resolved
src/integrationTest/java/org/opensearch/security/http/AsyncTests.java
Outdated
Show resolved
Hide resolved
src/integrationTest/java/org/opensearch/security/http/AsyncTests.java
Outdated
Show resolved
Hide resolved
src/integrationTest/java/org/opensearch/security/http/AsyncTests.java
Outdated
Show resolved
Hide resolved
src/integrationTest/java/org/opensearch/security/http/AsyncTests.java
Outdated
Show resolved
Hide resolved
src/integrationTest/java/org/opensearch/security/http/AsyncTests.java
Outdated
Show resolved
Hide resolved
src/integrationTest/java/org/opensearch/security/http/AsyncTests.java
Outdated
Show resolved
Hide resolved
src/integrationTest/java/org/opensearch/security/http/AsyncTests.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Craig Perkins <[email protected]>
Signed-off-by: Craig Perkins <[email protected]>
Signed-off-by: Craig Perkins <[email protected]>
Signed-off-by: Craig Perkins <[email protected]>
src/integrationTest/java/org/opensearch/security/http/AsyncTests.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Craig Perkins <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks!
…#3637) Signed-off-by: Craig Perkins <[email protected]> Signed-off-by: Craig Perkins <[email protected]> (cherry picked from commit 850b7dc) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…opensearch-project#3637) Signed-off-by: Craig Perkins <[email protected]> Signed-off-by: Craig Perkins <[email protected]>
…he invalidation (#3648) Backport 850b7dc from #3637. --------- Signed-off-by: Craig Perkins <[email protected]> Signed-off-by: Craig Perkins <[email protected]>
#3725) ### Description This change backports #1970 in order to fix the OptionalDataException issue encountered on the 1.3.x line. The original change did not have any tests but #3637 added tests, so I backported those as well and the changes required to support them. This resulted in changes to the TestSecurityConfig.User class, the addition of a IndexStateIsEqualToMatcher and User.java. ### Issues Resolved - Resolves #3531 - Backports #1970 - Backports #3637 ### Check List - [X] New functionality includes testing - [ ] ~New functionality has been documented~ - [x] 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](https://github.com/opensearch-project/OpenSearch/blob/main/CONTRIBUTING.md#developer-certificate-of-origin). --------- Signed-off-by: Stephen Crawford <[email protected]> Signed-off-by: Stephen Crawford <[email protected]> Signed-off-by: Peter Nied <[email protected]> Co-authored-by: Peter Nied <[email protected]>
…opensearch-project#3637) Signed-off-by: Craig Perkins <[email protected]> Signed-off-by: Craig Perkins <[email protected]>
Description
Opening a PR that adds a test to ensure that requests during a cache invalidation succeed and fail if any unsuccessful status code is detected. This is related to adding an automated test for #1961
I'm currently encountering a couple of issues and am able to reproduce a separate concurrency error, but not the OptionalDataException.
This test will fail if both of these PRs are reverted:
When the above 2 PRs are reverted, the test case fails with:
This test provides assurances that there are no errors related to concurrency and cache invalidation. I had to update the integrationTest framework to add
backendRoles
onto the User object in the integration test suite.Adds a test
Check List
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.