-
Notifications
You must be signed in to change notification settings - Fork 280
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
Incremented version to 2.0.1 #1881
Conversation
Signed-off-by: Zelin Hao <[email protected]>
Signed-off-by: cliu123 <[email protected]>
@@ -341,8 +341,6 @@ private void checkAllSfAllowed() throws Exception { | |||
rh.sendAdminCertificate = false; | |||
checkReadAccess(HttpStatus.SC_OK, "picard", "picard", "sf", "_doc", 1); | |||
checkWriteAccess(HttpStatus.SC_OK, "picard", "picard", "sf", "_doc", 1); | |||
// ES7 only supports one doc type, so trying to create a second one leads to 400 BAD REQUEST | |||
checkWriteAccess(HttpStatus.SC_BAD_REQUEST, "picard", "picard", "sf", "public", 1); |
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.
Removing this assertion to align with the behavior change in OpenSearch 2.0.1.
@@ -213,12 +213,12 @@ protected String checkReadAccess(int status, String username, String password, S | |||
|
|||
} | |||
|
|||
protected String checkWriteAccess(int status, String username, String password, String indexName, String type, | |||
protected String checkWriteAccess(int status, String username, String password, String indexName, String actionType, |
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.
Fixing the naming here as OpenSearch 2.0+ supports actionType in the API path and dropped the support for type.
Codecov Report
@@ Coverage Diff @@
## 2.0 #1881 +/- ##
============================================
- Coverage 60.85% 60.84% -0.02%
+ Complexity 3188 3187 -1
============================================
Files 253 253
Lines 17921 17921
Branches 3203 3203
============================================
- Hits 10906 10904 -2
- Misses 5439 5442 +3
+ Partials 1576 1575 -1
Continue to review full report at Codecov.
|
@cliu123 Thanks for the help here! |
Signed-off-by: Zelin Hao [email protected]
Description
[Describe what this change achieves]
Increment version to 2.0.1
Part of opensearch-project/opensearch-build#2165
Is this a backport? If so, please add backport PR # and/or commits #
Testing
[Please provide details of testing done: unit testing, integration testing and manual testing]
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.