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());