Skip to content

Commit

Permalink
Fixes password assignment for integTest when using remote cluster (op…
Browse files Browse the repository at this point in the history
…ensearch-project#1091)

(cherry picked from commit 027509e)
  • Loading branch information
DarshitChanpura committed Feb 7, 2024
1 parent 1162fd3 commit 3e899e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,8 @@ integTest {
systemProperty "https", System.getProperty("https")
systemProperty "security", System.getProperty("security")
systemProperty "user", System.getProperty("user", "admin")
systemProperty "password", System.getProperty("password", "admin")
// a remote cluster requires a custom password to be passed. This password must be a custom password.
systemProperty "password", usingRemoteCluster ? System.getProperty("password", "myStrongPassword123!") : "admin" // defaulting to admin since security plugin's demo config tool is not used
// Tell the test JVM if the cluster JVM is running under a debugger so that tests can use longer timeouts for
// requests. The 'doFirst' delays reading the debug setting on the cluster till execution time.
doFirst {
Expand Down

0 comments on commit 3e899e9

Please sign in to comment.