diff --git a/src/main/java/org/opensearch/commons/rest/SecureRestClientBuilder.java b/src/main/java/org/opensearch/commons/rest/SecureRestClientBuilder.java index 1c747025..b88965b1 100644 --- a/src/main/java/org/opensearch/commons/rest/SecureRestClientBuilder.java +++ b/src/main/java/org/opensearch/commons/rest/SecureRestClientBuilder.java @@ -46,7 +46,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 0c6b7cfe..4fc80ae9 100644 --- a/src/test/java/org/opensearch/commons/rest/IntegrationTests.java +++ b/src/test/java/org/opensearch/commons/rest/IntegrationTests.java @@ -38,7 +38,7 @@ private Request createSampleRequest() { @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());