Skip to content

Commit 7940f77

Browse files
ryanbogangithub-actions[bot]
authored andcommitted
Remove default admin credentials in security test workflow (#616)
Signed-off-by: Ryan Bogan <rbogan@amazon.com> (cherry picked from commit 7c214dc)
1 parent 273fa8f commit 7940f77

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/test_security.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -72,17 +72,17 @@ jobs:
7272
if: env.imagePresent == 'true'
7373
run: |
7474
cd ..
75-
docker run -p 9200:9200 -d -p 9600:9600 -e "discovery.type=single-node" opensearch-geospatial:test
75+
docker run -p 9200:9200 -d -p 9600:9600 -e "OPENSEARCH_INITIAL_ADMIN_PASSWORD=myStrongPassword123!" -e "discovery.type=single-node" opensearch-geospatial:test
7676
sleep 90
7777
7878
- name: Run Geospatial Integ Test
7979
if: env.imagePresent == 'true'
8080
run: |
81-
security=`curl -XGET https://localhost:9200/_cat/plugins?v -u admin:admin --insecure |grep opensearch-security|wc -l`
81+
security=`curl -XGET https://localhost:9200/_cat/plugins?v -u admin:myStrongPassword123! --insecure |grep opensearch-security|wc -l`
8282
if [ $security -gt 0 ]
8383
then
8484
echo "Security plugin is available"
85-
./gradlew integTest -Dtests.rest.cluster=localhost:9200 -Dtests.cluster=localhost:9200 -Dtests.clustername="docker-cluster" -Dhttps=true -Duser=admin -Dpassword=admin
85+
./gradlew integTest -Dtests.rest.cluster=localhost:9200 -Dtests.cluster=localhost:9200 -Dtests.clustername="docker-cluster" -Dhttps=true -Duser=admin -Dpassword=myStrongPassword123!
8686
else
8787
echo "Security plugin is NOT available, skipping integration tests"
8888
fi

0 commit comments

Comments
 (0)