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

[2.x] Revert "Make High-Level-Rest-Client tests allow deprecation warning temporarily (#2702)" #2930

Merged

Conversation

tlfeng
Copy link
Collaborator

@tlfeng tlfeng commented Apr 15, 2022

Description

The PR can only be merged after PR #2920 merged. [<- achieved]

This reverts commit 6a2a33d, and will be get into 2.x branch.
This PR sets the High-Level-Rest-Client tests back to treating warning header as a failure.

During the process of deprecating REST API request parameter master_timeout and add alternative parameter cluster_manager_timeout, I made High-Level-Rest-Client tests allow deprecation warning temporarily, by changing the argument of setStrictDeprecationMode() to false when building RestClient for tests, in the above commit / PR #2702.

Now it's decided not to emit deprecation warning for using parameter master_timeout in version 2.x, in issue #2928, so it will be ready to change this testing behavior back after PR #2920 merged.

Testing:
./gradlew ':client:rest-high-level:asyncIntegTest' passed.

Issues Resolved

A part of issue #2928 and issue #2511

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • 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.

…emporarily, during deprecation of request parameter 'master_timeout' (opensearch-project#2702)"

This reverts commit 6a2a33d.

Signed-off-by: Tianli Feng <ftianli@amazon.com>
@tlfeng tlfeng added v2.0.0 Version 2.0.0 backport 2.0 Backport to 2.0 branch labels Apr 15, 2022
@tlfeng tlfeng requested a review from a team as a code owner April 15, 2022 22:10
@opensearch-ci-bot
Copy link
Collaborator

❌   Gradle Check failure 19ac7cd
Log 4533

Reports 4533

@tlfeng tlfeng added the v2.1.0 Issues and PRs related to version 2.1.0 label Apr 15, 2022
…recationmode

Signed-off-by: Tianli Feng <ftianli@amazon.com>
@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Check success c5163c1
Log 4537

Reports 4537

@tlfeng tlfeng merged commit 91aa312 into opensearch-project:2.x Apr 16, 2022
@tlfeng tlfeng deleted the 2.x-revert-strictdeprecationmode branch April 16, 2022 00:19
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 16, 2022
…emporarily, during deprecation of request parameter 'master_timeout' (#2702)" (#2930)

This reverts commit 6a2a33d.
* Sets the High-Level-Rest-Client tests back to treating warning header as a failure.

Signed-off-by: Tianli Feng <ftianli@amazon.com>
(cherry picked from commit 91aa312)
tlfeng pushed a commit that referenced this pull request Apr 16, 2022
…emporarily, during deprecation of request parameter 'master_timeout' (#2702)" (#2930) (#2934)

This reverts commit 6a2a33d.
* Sets the High-Level-Rest-Client tests back to treating warning header as a failure.

Signed-off-by: Tianli Feng <ftianli@amazon.com>
(cherry picked from commit 91aa312)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.0 Backport to 2.0 branch :test Adding or fixing a test v2.0.0 Version 2.0.0 v2.1.0 Issues and PRs related to version 2.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants