Skip to content

Commit

Permalink
changed all usages of 'admin' as a password to something different (#581
Browse files Browse the repository at this point in the history
)

Signed-off-by: Dennis Toepker <toepkerd@amazon.com>
Co-authored-by: Dennis Toepker <toepkerd@amazon.com>
(cherry picked from commit a632b47)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and toepkerd-zz committed Jan 31, 2024
1 parent 8e2537b commit 8cc0f7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
*
* Other usage:
* RestClient restClient = new SecureRestClientBuilder("localhost", 9200, false)
* .setUserPassword("admin", "admin")
* .setUserPassword("admin", "myStrongPassword123")
* .setTrustCerts(trustStorePath)
* .build();
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 8cc0f7a

Please sign in to comment.