[Backport 3.x] Use Testcontainers for integration tests (#2033)#2054
Merged
Conversation
Backport of opensearch-project#2033 to the 3.x branch. Conflicts in build.gradle.kts (opensearchVersion location/value) and CHANGELOG.md were resolved to keep the 3.x release version and only the opensearch-project#2033 changelog entry. Signed-off-by: sanghun <vitash1215@gmail.com>
Contributor
Author
reta
approved these changes
Jul 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #2033 to the
3.xbranch. The automated backport failed to cherry-pick cleanly (https://github.com/opensearch-project/opensearch-java/actions/runs/28753546085), so this is the manual backport.Conflicts resolved:
java-client/build.gradle.kts: kept the 3.x release version (opensearchVersion = "3.5.0") and moved the declaration above theintegrationTesttask soopensearchDockerVersionis defined before use.CHANGELOG.md: kept only the Use Testcontainers for integration tests #2033 entry (dropped unrelated main-only entries that the squash diff pulled in).Verified locally with
./gradlew :java-client:spotlessJavaCheck :java-client:compileJava21Java(BUILD SUCCESSFUL).