@@ -97,7 +97,7 @@ protected RestClient buildClient(Settings settings, HttpHost[] hosts) throws IOE
97
97
if (isHttps ()) {
98
98
configureHttpsClient (builder , settings , hosts [0 ]);
99
99
} else {
100
- configureClient (builder , settings , hosts [ 0 ] );
100
+ configureClient (builder , settings );
101
101
}
102
102
103
103
builder .setStrictDeprecationMode (false );
@@ -201,7 +201,8 @@ protected static void wipeAllOpenSearchIndices(RestClient client) throws IOExcep
201
201
}
202
202
}
203
203
204
- protected static void configureClient (RestClientBuilder builder , Settings settings , HttpHost httpHost ) throws IOException {
204
+ protected static void configureClient (RestClientBuilder builder , Settings settings )
205
+ throws IOException {
205
206
String userName = System .getProperty ("user" );
206
207
String password = System .getProperty ("password" );
207
208
if (userName != null && password != null ) {
@@ -213,7 +214,7 @@ protected static void configureClient(RestClientBuilder builder, Settings settin
213
214
return httpClientBuilder .setDefaultCredentialsProvider (credentialsProvider );
214
215
});
215
216
}
216
- configureClient (builder , settings );
217
+ OpenSearchRestTestCase . configureClient (builder , settings );
217
218
}
218
219
219
220
protected static void configureHttpsClient (RestClientBuilder builder , Settings settings ,
0 commit comments