forked from opensearch-project/security-dashboards-plugin
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial commit * Removed Windows and Mac tests * Fix oidc test * Fix SAML test
- Loading branch information
1 parent
423d469
commit 1856b2e
Showing
5 changed files
with
41 additions
and
18 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 |
---|---|---|
|
@@ -14,13 +14,13 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ ubuntu-latest , windows-latest ] | ||
os: [ubuntu-latest] # Removed windows-latest | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout Branch | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
|
@@ -34,7 +34,25 @@ jobs: | |
echo "PLUGIN_VERSION=$plugin_version" >> $GITHUB_ENV | ||
shell: bash | ||
|
||
- name: Download security plugin and create setup scripts for remote cluster | ||
- uses: browser-actions/[email protected] | ||
- run: geckodriver --version | ||
|
||
- name: Set up Firefox browser | ||
if: ${{ runner.os == 'Linux' }} | ||
uses: browser-actions/setup-firefox@v1 | ||
|
||
- run: firefox --version | ||
if: ${{ runner.os == 'Linux' }} | ||
|
||
# Browser-action version does not work on Windows | ||
# - name: Set up Firefox browser for Windows | ||
# if: ${{ runner.os == 'Windows' }} | ||
# uses: RyanL1997/setup-browser@main | ||
# with: | ||
# browser: firefox | ||
# version: latest | ||
|
||
- name: Download security plugin and create setup scripts | ||
uses: ./.github/actions/download-plugin | ||
with: | ||
opensearch-version: ${{ env.OPENSEARCH_VERSION }} | ||
|
@@ -69,7 +87,7 @@ jobs: | |
uses: derek-ho/start-opensearch@v2 | ||
with: | ||
opensearch-version: ${{ env.OPENSEARCH_VERSION }} | ||
plugins: "file:$(pwd)/${{ env.PLUGIN_NAME }}.zip" | ||
plugins: 'file:$(pwd)/${{ env.PLUGIN_NAME }}.zip' | ||
security-enabled: true | ||
admin-password: ${{ env.OPENSEARCH_INITIAL_ADMIN_PASSWORD }} | ||
|
||
|
@@ -102,11 +120,10 @@ jobs: | |
shell: bash | ||
working-directory: ${{ steps.install-dashboards.outputs.plugin-directory }} | ||
|
||
- name: Run integration tests on Windows | ||
if: ${{ runner.os == 'Windows' }} | ||
run: | | ||
echo "check if opensearch is ready" | ||
curl -XGET https://localhost:9200 -u 'admin:${{ env.OPENSEARCH_INITIAL_ADMIN_PASSWORD }}' -k | ||
export ADMIN_PASSWORD=${{ env.OPENSEARCH_INITIAL_ADMIN_PASSWORD }} && node ./test/run_jest_tests.js --runInBand --detectOpenHandles --forceExit --config ./test/jest.config.server.js | ||
shell: bash | ||
working-directory: ${{ steps.install-dashboards.outputs.plugin-directory }} | ||
# - name: Run integration tests on Windows | ||
# if: ${{ runner.os == 'Windows' }} | ||
# run: | | ||
# echo "check if opensearch is ready" | ||
# curl -XGET https://localhost:9200 -u 'admin:${{ env.OPENSEARCH_INITIAL_ADMIN_PASSWORD }}' -k | ||
# node .\test\run_jest_tests.js --runInBand --detectOpenHandles --forceExit --config .\test\jest.config.server.js | ||
# working-directory: ${{ steps.install-dashboards.outputs.plugin-directory }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,4 +60,4 @@ | |
"express": "^4.19.2", | ||
"braces": "^3.0.3" | ||
} | ||
} | ||
} |
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