From 10b60faf7a5ff4086e3c5fc6970c9f425f8fc95b Mon Sep 17 00:00:00 2001 From: Dennis Toepker Date: Fri, 29 Nov 2024 10:24:50 -0800 Subject: [PATCH] Replacing hard-coded password with randomly generated string Signed-off-by: Dennis Toepker --- .../securityanalytics/SecurityAnalyticsRestTestCase.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 {