Use EventFactory instead of JacksonEvent.builder() in iceberg-source … #200
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
| # | |
| # Copyright OpenSearch Contributors | |
| # SPDX-License-Identifier: Apache-2.0 | |
| # | |
| # The OpenSearch Contributors require contributions made to | |
| # this file be licensed under the Apache-2.0 license or a | |
| # compatible open source license. | |
| # | |
| name: Integration Tests - OpenSearch sink against Open Distro | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - 'data-prepper-plugins/opensearch/**' | |
| - '*gradle*' | |
| pull_request: | |
| paths: | |
| - 'data-prepper-plugins/opensearch/**' | |
| - '*gradle*' | |
| workflow_dispatch: | |
| jobs: | |
| integration-tests: | |
| strategy: | |
| matrix: | |
| java: [11] | |
| opendistro: [0.10.0, 1.3.0, 1.6.0, 1.8.0, 1.9.0, 1.11.0, 1.12.0, 1.13.3] | |
| fail-fast: false | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Set up JDK ${{ matrix.java }} | |
| uses: actions/setup-java@v2 | |
| with: | |
| distribution: 'temurin' | |
| java-version: ${{ matrix.java }} | |
| - name: Checkout Data Prepper | |
| uses: actions/checkout@v6 | |
| - name: Run Open Distro docker | |
| run: | | |
| docker pull amazon/opendistro-for-elasticsearch:${{ matrix.opendistro }} | |
| docker run -p 9200:9200 -p 9600:9600 -e "discovery.type=single-node" -d amazon/opendistro-for-elasticsearch:${{ matrix.opendistro }} | |
| sleep 1 | |
| - name: Wait for Open Distro to be available | |
| run: | | |
| ./gradlew :data-prepper-plugins:opensearch:integrationTest --tests "org.opensearch.dataprepper.plugins.sink.opensearch.OpenSearchIT" -Dtests.opensearch.host=localhost:9200 -Dtests.opensearch.user=admin -Dtests.opensearch.password=admin | |
| - name: Run Open Distro tests | |
| run: | | |
| ./gradlew :data-prepper-plugins:opensearch:integrationTest -Dtests.opensearch.host=localhost:9200 -Dtests.opensearch.user=admin -Dtests.opensearch.password=admin -Dtests.opensearch.bundle=true -Dtests.opensearch.version=opendistro:${{ matrix.opendistro }} | |
| - name: Upload Unit Test Results | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: data-prepper-opensearch-integration-tests-opendistro-${{ matrix.opendistro }}-java-${{ matrix.java }} | |
| path: '**/test-results/**/*.xml' | |
| publish-test-results: | |
| name: "Publish Unit Tests Results" | |
| needs: integration-tests | |
| runs-on: ubuntu-latest | |
| if: always() | |
| steps: | |
| - name: Download Artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| path: test-results | |
| - name: Publish Unit Test Results | |
| uses: EnricoMi/publish-unit-test-result-action@v1 | |
| with: | |
| files: "test-results/**/*.xml" |