Skip to content

Commit 2b712bc

Browse files
Updates admin credentials used in github workflow
Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
1 parent e70aa78 commit 2b712bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/build.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -115,16 +115,16 @@ jobs:
115115
if: env.imagePresent == 'true'
116116
run: |
117117
cd ..
118-
docker run -p 9200:9200 -d -p 9600:9600 -e "discovery.type=single-node" opensearch-asynchronous-search:test
118+
docker run -p 9200:9200 -d -p 9600:9600 -e "OPENSEARCH_INITIAL_ADMIN_PASSWORD=myStrongPassword123!" -e "discovery.type=single-node" opensearch-asynchronous-search:test
119119
sleep 90
120120
- name: Run Asynchronous Search Test
121121
if: env.imagePresent == 'true'
122122
run: |
123-
security=`curl -XGET https://localhost:9200/_cat/plugins?v -u admin:admin --insecure |grep opensearch-security|wc -l`
123+
security=`curl -XGET https://localhost:9200/_cat/plugins?v -u admin:myStrongPassword123! --insecure |grep opensearch-security|wc -l`
124124
if [ $security -gt 0 ]
125125
then
126126
echo "Security plugin is available"
127-
./gradlew integTest -Dtests.rest.cluster=localhost:9200 -Dtests.cluster=localhost:9200 -Dtests.clustername="docker-cluster" -Dhttps=true -Duser=admin -Dpassword=admin
127+
./gradlew integTest -Dtests.rest.cluster=localhost:9200 -Dtests.cluster=localhost:9200 -Dtests.clustername="docker-cluster" -Dhttps=true -Duser=admin -Dpassword=myStrongPassword123!
128128
else
129129
echo "Security plugin is NOT available"
130130
./gradlew integTest -Dtests.rest.cluster=localhost:9200 -Dtests.cluster=localhost:9200 -Dtests.clustername="docker-cluster"

0 commit comments

Comments
 (0)