-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Breaking changes for type removal (#132)
* Adding support to test against unreleased OpenSearch Signed-off-by: Vacha Shah <[email protected]> * Upgrading OpenSearch version to 2.0.0-SNAPSHOT and Java version Signed-off-by: Vacha Shah <[email protected]> * Remove type mapping Signed-off-by: Vacha Shah <[email protected]> * Using snapshots from sonatype for 2.0 OpenSearch snapshot Signed-off-by: Vacha Shah <[email protected]> * Updating workflows and removing exists_type Signed-off-by: Vacha Shah <[email protected]> * Fixing integration tests Signed-off-by: Vacha Shah <[email protected]>
- Loading branch information
Showing
47 changed files
with
77 additions
and
2,546 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Integration with Unreleased OpenSearch | ||
|
||
on: | ||
push: | ||
branches: | ||
- "main" | ||
pull_request: | ||
branches: | ||
- "main" | ||
|
||
env: | ||
OPENSEARCH_VERSION: '2.0' | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
java: [ 11 ] | ||
steps: | ||
- name: Set up JDK ${{ matrix.java }} | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
|
||
- name: Checkout OpenSearch | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: opensearch-project/opensearch | ||
ref: ${{ env.OPENSEARCH_VERSION }} | ||
path: opensearch | ||
|
||
- name: Assemble OpenSearch | ||
run: | | ||
cd opensearch | ||
./gradlew assemble | ||
# This step runs the docker image generated during gradle assemble in OpenSearch. It is tagged as opensearch:test. | ||
# Reference: https://github.com/opensearch-project/OpenSearch/blob/2.0/distribution/docker/build.gradle#L190 | ||
- name: Run Docker Image | ||
run: | | ||
docker run -p 9200:9200 -p 9600:9600 -d -e "discovery.type=single-node" -e "bootstrap.memory_lock=true" opensearch:test | ||
sleep 90 | ||
- name: Checkout Java Client | ||
uses: actions/checkout@v2 | ||
with: | ||
path: opensearch-java | ||
|
||
- name: Run Integration Test | ||
run: | | ||
cd opensearch-java | ||
./gradlew clean integrationTest -Dhttps=false |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.