Skip to content

Commit

Permalink
[Backport 2.x] changed all usages of 'admin' as a password to somethi…
Browse files Browse the repository at this point in the history
…ng different (opensearch-project#583)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Dennis Toepker <[email protected]>
  • Loading branch information
3 people authored Feb 1, 2024
1 parent 8e2537b commit a45dd4d
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 a45dd4d

Please sign in to comment.