Skip to content

Commit a0e9476

Browse files
authored
Updates admin credentials used in github workflow (opensearch-project#521)
Signed-off-by: RS146BIJAY <rishavsagar4b1@gmail.com>
1 parent bc2b501 commit a0e9476

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/build.yml

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

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ The project in this package uses the [Gradle](https://docs.gradle.org/current/us
7777
9. `./gradlew asynSearchCluster#rollingUpgradeClusterTask -Dtests.security.manager=false` launches a cluster with three nodes of bwc version of OpenSearch with async search plugin and tests backwards compatibility by performing rolling upgrade of all nodes with the current version of OpenSearch with async search plugin.
7878
10. `./gradlew asynSearchCluster#fullRestartClusterTask -Dtests.security.manager=false` launches a cluster with three nodes of bwc version of OpenSearch with async search plugin and tests backwards compatibility by performing a full restart on the cluster upgrading all the nodes with the current version of OpenSearch with async search plugin.
7979
11. `./gradlew bwcTestSuite -Dtests.security.manager=false` runs all the above bwc tests combined.
80-
12. `./gradlew integTestRemote -Dtests.rest.cluster=localhost:9200 -Dtests.cluster=localhost:9200 -Dtests.clustername="docker-cluster" -Dhttps=true -Duser=admin -Dpassword=admin` launches integration tests against a local cluster and run tests with security
80+
12. `./gradlew integTestRemote -Dtests.rest.cluster=localhost:9200 -Dtests.cluster=localhost:9200 -Dtests.clustername="docker-cluster" -Dhttps=true -Duser=admin -Dpassword=admin` launches integration tests against a local cluster and run tests with security`./gradlew integTestRemote -Dtests.rest.cluster=localhost:9200 -Dtests.cluster=localhost:9200 -Dtests.clustername="docker-cluster" -Dhttps=true -Duser=admin -Dpassword=<admin-password>` launches integration tests against a local cluster and run tests with security
8181

8282
When launching a cluster using one of the above commands, logs are placed in `build/testclusters/integTest-0/logs`. Though the logs are teed to the console, in practices it's best to check the actual log file.
8383

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ integTest {
203203
systemProperty 'buildDir', buildDir.path
204204
systemProperty "https", System.getProperty("https", securityEnabled.toString())
205205
systemProperty "user", System.getProperty("user", "admin")
206-
systemProperty "password", System.getProperty("password", "admin")
206+
systemProperty "password", System.getProperty("password", "myStrongPassword123!") // this change is needed for >= 2.12 and should not be backported to < 2.12
207207
// Tell the test JVM if the cluster JVM is running under a debugger so that tests can use longer timeouts for
208208
// requests. The 'doFirst' delays reading the debug setting on the cluster till execution time.
209209
doFirst {

0 commit comments

Comments
 (0)