From 6d85f52840104fa109a0ea8cb877ab0be22007ee Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Thu, 8 Feb 2024 00:13:51 +0530 Subject: [PATCH] Updates integTest behavior to run against local and remote cluster (#1088) (#1090) (cherry picked from commit 08b3152d4cf6116fd398a64c30556107f0bbf569) Signed-off-by: Darshit Chanpura Signed-off-by: github-actions[bot] Co-authored-by: github-actions[bot] Co-authored-by: bowenlan-amzn --- build.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 816199204..72900401d 100644 --- a/build.gradle +++ b/build.gradle @@ -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 { @@ -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')) {