From a632b47c56c323bdab49714cc2bf74231cfb2145 Mon Sep 17 00:00:00 2001 From: toepkerd <120457569+toepkerd@users.noreply.github.com> Date: Wed, 31 Jan 2024 14:23:12 -0800 Subject: [PATCH] changed all usages of 'admin' as a password to something different (#581) Signed-off-by: Dennis Toepker Co-authored-by: Dennis Toepker --- .../org/opensearch/commons/rest/SecureRestClientBuilder.java | 2 +- src/test/java/org/opensearch/commons/rest/IntegrationTests.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/opensearch/commons/rest/SecureRestClientBuilder.java b/src/main/java/org/opensearch/commons/rest/SecureRestClientBuilder.java index 74f18b02..2fabcbc0 100644 --- a/src/main/java/org/opensearch/commons/rest/SecureRestClientBuilder.java +++ b/src/main/java/org/opensearch/commons/rest/SecureRestClientBuilder.java @@ -54,7 +54,7 @@ * * Other usage: * RestClient restClient = new SecureRestClientBuilder("localhost", 9200, false) - * .setUserPassword("admin", "admin") + * .setUserPassword("admin", "myStrongPassword123") * .setTrustCerts(trustStorePath) * .build(); * diff --git a/src/test/java/org/opensearch/commons/rest/IntegrationTests.java b/src/test/java/org/opensearch/commons/rest/IntegrationTests.java index 818c1b6c..3fa18c0f 100644 --- a/src/test/java/org/opensearch/commons/rest/IntegrationTests.java +++ b/src/test/java/org/opensearch/commons/rest/IntegrationTests.java @@ -47,7 +47,7 @@ protected SecureSettings createSecureSettings() { @Test public void testCreateRestClientWithUser() throws Exception { - RestClient client = new SecureRestClientBuilder("localhost", 9200, true, "admin", "admin").build(); + RestClient client = new SecureRestClientBuilder("localhost", 9200, true, "admin", "myStrongPassword123").build(); Response response = client.performRequest(createSampleRequest()); String responseBody = EntityUtils.toString(response.getEntity()); assertEquals(200, response.getStatusLine().getStatusCode());