From 7c214dc97ac3b8b92b4162a017beed27708e6475 Mon Sep 17 00:00:00 2001 From: Ryan Bogan Date: Tue, 30 Jan 2024 09:09:51 -0800 Subject: [PATCH] Remove default admin credentials in security test workflow (#616) Signed-off-by: Ryan Bogan --- .github/workflows/test_security.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test_security.yml b/.github/workflows/test_security.yml index 88328c142a..d7e053af58 100644 --- a/.github/workflows/test_security.yml +++ b/.github/workflows/test_security.yml @@ -72,17 +72,17 @@ jobs: if: env.imagePresent == 'true' run: | cd .. - docker run -p 9200:9200 -d -p 9600:9600 -e "discovery.type=single-node" opensearch-geospatial:test + docker run -p 9200:9200 -d -p 9600:9600 -e "OPENSEARCH_INITIAL_ADMIN_PASSWORD=myStrongPassword123!" -e "discovery.type=single-node" opensearch-geospatial:test sleep 90 - name: Run Geospatial Integ Test if: env.imagePresent == 'true' run: | - security=`curl -XGET https://localhost:9200/_cat/plugins?v -u admin:admin --insecure |grep opensearch-security|wc -l` + security=`curl -XGET https://localhost:9200/_cat/plugins?v -u admin:myStrongPassword123! --insecure |grep opensearch-security|wc -l` if [ $security -gt 0 ] then echo "Security plugin is available" - ./gradlew integTest -Dtests.rest.cluster=localhost:9200 -Dtests.cluster=localhost:9200 -Dtests.clustername="docker-cluster" -Dhttps=true -Duser=admin -Dpassword=admin + ./gradlew integTest -Dtests.rest.cluster=localhost:9200 -Dtests.cluster=localhost:9200 -Dtests.clustername="docker-cluster" -Dhttps=true -Duser=admin -Dpassword=myStrongPassword123! else echo "Security plugin is NOT available, skipping integration tests" fi