Skip to content

Commit

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

Signed-off-by: Dennis Toepker <toepkerd@amazon.com>
Co-authored-by: Dennis Toepker <toepkerd@amazon.com>
  • Loading branch information
toepkerd and toepkerd-zz authored Jan 31, 2024
1 parent 195b17d commit a632b47
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 @@ -54,7 +54,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 @@ -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());
Expand Down

0 comments on commit a632b47

Please sign in to comment.