Skip to content

Commit

Permalink
Update cypress E2E workflow to reflect changes to default admin passw…
Browse files Browse the repository at this point in the history
…ord (#1714) (#1719)

Signed-off-by: Darshit Chanpura <[email protected]>
(cherry picked from commit 96a449f)

Co-authored-by: Darshit Chanpura <[email protected]>
  • Loading branch information
1 parent 1f55360 commit 45dc18e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/cypress-test-oidc-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ env:
PLUGIN_NAME: opensearch-security
# This is the SHA256 checksum of the known good kc.sh script for Keycloak version 21.0.1.
KNOWN_CHECKSUM_OF_KEYCLOAK_SCRIPT: 'f825ea1a9ffa5ad91673737c06857ababbb69b6b8f09e0c637b4c998517f9608'
OPENSEARCH_INITIAL_ADMIN_PASSWORD: myStrongPassword123!

jobs:
tests:
Expand All @@ -21,8 +22,6 @@ jobs:
matrix:
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
env:
OPENSEARCH_INITIAL_ADMIN_PASSWORD: admin

steps:
- name: Set up JDK
Expand Down Expand Up @@ -191,7 +190,7 @@ jobs:
# Verify that the server is operational
- name: Check OpenSearch Running on Linux
if: ${{ runner.os != 'Windows'}}
run: curl https://localhost:9200/_cat/plugins -u 'admin:admin' -k -v
run: curl https://localhost:9200/_cat/plugins -u 'admin:${{ env.OPENSEARCH_INITIAL_ADMIN_PASSWORD }}' -k -v
shell: bash

- if: always()
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/cypress-test-saml-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ env:
# avoid warnings like "tput: No value for $TERM and no -T specified"
TERM: xterm
PLUGIN_NAME: opensearch-security

OPENSEARCH_INITIAL_ADMIN_PASSWORD: myStrongPassword123!

jobs:
tests:
name: Run Cypress E2E SAML tests
Expand All @@ -17,8 +18,6 @@ jobs:
matrix:
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
env:
OPENSEARCH_INITIAL_ADMIN_PASSWORD: admin

steps:
- name: Set up JDK
Expand Down Expand Up @@ -147,7 +146,7 @@ jobs:
# Verify that the server is operational
- name: Check OpenSearch Running on Linux
if: ${{ runner.os != 'Windows'}}
run: curl https://localhost:9200/_cat/plugins -u 'admin:admin' -k -v
run: curl https://localhost:9200/_cat/plugins -u 'admin:${{ env.OPENSEARCH_INITIAL_ADMIN_PASSWORD }}' -k -v
shell: bash

- if: always()
Expand Down
2 changes: 1 addition & 1 deletion cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ module.exports = defineConfig({
env: {
openSearchUrl: 'https://localhost:9200',
adminUserName: 'admin',
adminPassword: 'admin',
adminPassword: 'myStrongPassword123!',
},
});

0 comments on commit 45dc18e

Please sign in to comment.