Skip to content

Commit 58c5c1f

Browse files
Code clean up.
Signed-off-by: Yury-Fridlyand <[email protected]>
1 parent 34d333e commit 58c5c1f

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

integ-test/build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ ext {
7373
def snapshotVersion = metadata.versioning.snapshotVersions[0].snapshotVersion[0].value[0].text()
7474

7575
return repo + "opensearch-security-${snapshotVersion}.zip"
76-
//return "https://aws.oss.sonatype.org/content/repositories/snapshots/org/opensearch/plugin/opensearch-security/3.0.0.0-SNAPSHOT/opensearch-security-3.0.0.0-20230801.181212-166.zip"
7776
}
7877
}
7978

@@ -112,7 +111,6 @@ dependencies {
112111
testImplementation group: 'org.opensearch.client', name: 'opensearch-rest-client', version: "${opensearch_version}"
113112
testImplementation group: 'org.opensearch.driver', name: 'opensearch-sql-jdbc', version: System.getProperty("jdbcDriverVersion", '1.2.0.0')
114113
testImplementation group: 'org.hamcrest', name: 'hamcrest', version: '2.1'
115-
//testImplementation group: 'org.hamcrest', name: 'hamcrest-core', version: '2.1'
116114
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version:'2.20.0'
117115
testImplementation project(':opensearch-sql-plugin')
118116
testImplementation project(':legacy')

integ-test/src/test/java/org/opensearch/sql/legacy/OpenSearchSQLRestTestCase.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ protected RestClient buildClient(Settings settings, HttpHost[] hosts) throws IOE
9797
if (isHttps()) {
9898
configureHttpsClient(builder, settings, hosts[0]);
9999
} else {
100-
configureClient(builder, settings, hosts[0]);
100+
configureClient(builder, settings);
101101
}
102102

103103
builder.setStrictDeprecationMode(false);
@@ -201,7 +201,8 @@ protected static void wipeAllOpenSearchIndices(RestClient client) throws IOExcep
201201
}
202202
}
203203

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 {
205206
String userName = System.getProperty("user");
206207
String password = System.getProperty("password");
207208
if (userName != null && password != null) {
@@ -213,7 +214,7 @@ protected static void configureClient(RestClientBuilder builder, Settings settin
213214
return httpClientBuilder.setDefaultCredentialsProvider(credentialsProvider);
214215
});
215216
}
216-
configureClient(builder, settings);
217+
OpenSearchRestTestCase.configureClient(builder, settings);
217218
}
218219

219220
protected static void configureHttpsClient(RestClientBuilder builder, Settings settings,

0 commit comments

Comments
 (0)