Skip to content

Commit 77ffba4

Browse files
authored
Use GHA derek-ho/start-opensearch for OpenSearch plugin install tests (opensearch-project#4063)
Signed-off-by: Derek Ho <dxho@amazon.com>
1 parent e40efdc commit 77ffba4

File tree

2 files changed

+3
-145
lines changed

2 files changed

+3
-145
lines changed

.github/actions/start-opensearch-with-one-plugin/action.yml

-127
This file was deleted.

.github/workflows/plugin_install.yml

+3-18
Original file line numberDiff line numberDiff line change
@@ -39,27 +39,12 @@ jobs:
3939
run: mv ./build/distributions/${{ env.PLUGIN_NAME }}-*.zip ${{ env.PLUGIN_NAME }}.zip
4040
shell: bash
4141

42-
- name: Create Setup Script
43-
if: ${{ runner.os == 'Linux' }}
44-
run: |
45-
cat > setup.sh <<'EOF'
46-
chmod +x ./opensearch-${{ env.OPENSEARCH_VERSION }}-SNAPSHOT/plugins/${{ env.PLUGIN_NAME }}/tools/install_demo_configuration.sh
47-
/bin/bash -c "yes | ./opensearch-${{ env.OPENSEARCH_VERSION }}-SNAPSHOT/plugins/${{ env.PLUGIN_NAME }}/tools/install_demo_configuration.sh -t"
48-
EOF
49-
50-
- name: Create Setup Script
51-
if: ${{ runner.os == 'Windows' }}
52-
run: |
53-
New-Item .\setup.bat -type file
54-
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"
55-
Get-Content .\setup.bat
56-
5742
- name: Run Opensearch with A Single Plugin
58-
uses: ./.github/actions/start-opensearch-with-one-plugin
43+
uses: derek-ho/start-opensearch@v2
5944
with:
6045
opensearch-version: ${{ env.OPENSEARCH_VERSION }}
61-
plugin-name: ${{ env.PLUGIN_NAME }}
62-
setup-script-name: setup
46+
plugins: "file:$(pwd)/${{ env.PLUGIN_NAME }}.zip"
47+
security-enabled: true
6348
admin-password: ${{ steps.random-password.outputs.generated_name }}
6449

6550
- name: Run sanity tests

0 commit comments

Comments
 (0)