Skip to content

Commit

Permalink
Updates integTest behavior to run against local and remote cluster (#…
Browse files Browse the repository at this point in the history
…1088)

Signed-off-by: Darshit Chanpura <[email protected]>
Co-authored-by: bowenlan-amzn <[email protected]>
(cherry picked from commit 08b3152)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and bowenlan-amzn committed Feb 6, 2024
1 parent 1162fd3 commit d6c9dcc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ integTest {
systemProperty "https", System.getProperty("https")
systemProperty "security", System.getProperty("security")
systemProperty "user", System.getProperty("user", "admin")
systemProperty "password", System.getProperty("password", "admin")
systemProperty "password", "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 Expand Up @@ -574,6 +574,8 @@ integTest {
// remove from running with remote cluster
if (usingRemoteCluster) {
exclude 'org/opensearch/indexmanagement/controlcenter/notification/filter/NotificationActionListenerIT.class'
// a remote cluster requires a custom password to be passed. This password must be a custom password.
systemProperty "password", System.getProperty("password", "myStrongPassword123!")
}

if (project.hasProperty('includeTests')) {
Expand Down

0 comments on commit d6c9dcc

Please sign in to comment.