From 034e1f3d2127d7a0b74ade4aeee0ff7639dfcbab Mon Sep 17 00:00:00 2001 From: Ryan Liang Date: Wed, 22 Nov 2023 17:33:09 -0800 Subject: [PATCH] Add admin step manually for now Signed-off-by: Ryan Liang --- .github/workflows/cypress-test-oidc-e2e.yml | 9 ++++++++- .github/workflows/cypress-test-saml-e2e.yml | 7 +++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cypress-test-oidc-e2e.yml b/.github/workflows/cypress-test-oidc-e2e.yml index 19bbced15..5f3111d04 100644 --- a/.github/workflows/cypress-test-oidc-e2e.yml +++ b/.github/workflows/cypress-test-oidc-e2e.yml @@ -113,7 +113,14 @@ jobs: yq -i ".config.dynamic.authc.openid_auth_domain.http_authenticator.config.openid_connect_url = \"http://localhost:8080/auth/realms/master/.well-known/openid-configuration\"" config.yml yq -i ".config.dynamic.authc.openid_auth_domain.authentication_backend.type = \"noop\"" config.yml cd ../../.. - + + # TODO: REMOVE THIS ONCE ADMIN JAVA TOOL SUPPORT IT + - name: Write password to initialAdminPassword location + if: ${{ runner.os == 'Linux'}} + run: + echo admin >> ./opensearch-${{ env.OPENSEARCH_VERSION }}-SNAPSHOT/config/initialAdminPassword.txt + shell: bash + # Run any configuration scripts - name: Run Setup Script for Linux if: ${{ runner.os == 'Linux' }} diff --git a/.github/workflows/cypress-test-saml-e2e.yml b/.github/workflows/cypress-test-saml-e2e.yml index aac47dd11..a498dcac3 100644 --- a/.github/workflows/cypress-test-saml-e2e.yml +++ b/.github/workflows/cypress-test-saml-e2e.yml @@ -57,6 +57,13 @@ jobs: rm -f opensearch-*.tar.gz shell: bash + # TODO: REMOVE THIS ONCE ADMIN JAVA TOOL SUPPORT IT + - name: Write password to initialAdminPassword location + if: ${{ runner.os == 'Linux'}} + run: + echo admin >> ./opensearch-${{ env.OPENSEARCH_VERSION }}-SNAPSHOT/config/initialAdminPassword.txt + shell: bash + # Install the security plugin - name: Install Plugin into OpenSearch for Linux if: ${{ runner.os == 'Linux'}}