Skip to content

Commit

Permalink
Use GHA derek-ho/start-opensearch for OpenSearch plugin install tes…
Browse files Browse the repository at this point in the history
…ts (opensearch-project#4063)

Signed-off-by: Derek Ho <[email protected]>
(cherry picked from commit 77ffba4)
Signed-off-by: Darshit Chanpura <[email protected]>
  • Loading branch information
derek-ho authored and DarshitChanpura committed Jul 31, 2024
1 parent 822c860 commit a9c0e71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 145 deletions.
127 changes: 0 additions & 127 deletions .github/actions/start-opensearch-with-one-plugin/action.yml

This file was deleted.

21 changes: 3 additions & 18 deletions .github/workflows/plugin_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,27 +39,12 @@ jobs:
run: mv ./build/distributions/${{ env.PLUGIN_NAME }}-*.zip ${{ env.PLUGIN_NAME }}.zip
shell: bash

- name: Create Setup Script
if: ${{ runner.os == 'Linux' }}
run: |
cat > setup.sh <<'EOF'
chmod +x ./opensearch-${{ env.OPENSEARCH_VERSION }}-SNAPSHOT/plugins/${{ env.PLUGIN_NAME }}/tools/install_demo_configuration.sh
/bin/bash -c "yes | ./opensearch-${{ env.OPENSEARCH_VERSION }}-SNAPSHOT/plugins/${{ env.PLUGIN_NAME }}/tools/install_demo_configuration.sh -t"
EOF
- name: Create Setup Script
if: ${{ runner.os == 'Windows' }}
run: |
New-Item .\setup.bat -type file
Set-Content .\setup.bat -Value "powershell.exe .\opensearch-${{ env.OPENSEARCH_VERSION }}-SNAPSHOT\plugins\${{ env.PLUGIN_NAME }}\tools\install_demo_configuration.bat -i -c -y -t"
Get-Content .\setup.bat
- name: Run Opensearch with A Single Plugin
uses: ./.github/actions/start-opensearch-with-one-plugin
uses: derek-ho/start-opensearch@v2
with:
opensearch-version: ${{ env.OPENSEARCH_VERSION }}
plugin-name: ${{ env.PLUGIN_NAME }}
setup-script-name: setup
plugins: "file:$(pwd)/${{ env.PLUGIN_NAME }}.zip"
security-enabled: true
admin-password: ${{ steps.random-password.outputs.generated_name }}

- name: Run sanity tests
Expand Down

0 comments on commit a9c0e71

Please sign in to comment.