diff --git a/src/test/java/org/opensearch/securityanalytics/SecurityAnalyticsRestTestCase.java b/src/test/java/org/opensearch/securityanalytics/SecurityAnalyticsRestTestCase.java index 07c062c2e..67dacdf61 100644 --- a/src/test/java/org/opensearch/securityanalytics/SecurityAnalyticsRestTestCase.java +++ b/src/test/java/org/opensearch/securityanalytics/SecurityAnalyticsRestTestCase.java @@ -4,6 +4,7 @@ */ package org.opensearch.securityanalytics; +import org.apache.commons.lang3.RandomStringUtils; import org.apache.hc.core5.http.ContentType; import org.apache.hc.core5.http.Header; import org.apache.hc.core5.http.HttpEntity; @@ -125,7 +126,7 @@ public class SecurityAnalyticsRestTestCase extends OpenSearchRestTestCase { - protected String password = "V%&ymu35#wbQaUo7"; + protected String password = RandomStringUtils.randomAlphanumeric(16); protected void createRuleTopicIndex(String detectorType, String additionalMapping) throws IOException {