File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
qa/smoke-test-http/src/internalClusterTest/java/org/elasticsearch/http Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,6 @@ public void testBulkInvalidIndexNameString() throws IOException {
8080
8181 public void testBulkRequestBodyImproperlyTerminated () throws IOException {
8282 Request request = new Request (randomBoolean () ? "POST" : "PUT" , "/_bulk" );
83-
8483 // missing final line of the bulk body. cannot process
8584 request .setJsonEntity (
8685 "{\" index\" :{\" _index\" :\" index_name\" ,\" _id\" :\" 1\" }}\n "
@@ -108,6 +107,7 @@ public void testBulkRequest() throws IOException {
108107 assertThat (indexCreatedResponse .getStatusLine ().getStatusCode (), equalTo (OK .getStatus ()));
109108
110109 Request firstBulkRequest = new Request ("POST" , "/index_name/_bulk" );
110+
111111 String bulkBody = "{\" index\" :{\" _index\" :\" index_name\" ,\" _id\" :\" 1\" }}\n "
112112 + "{\" field\" :1}\n "
113113 + "{\" index\" :{\" _index\" :\" index_name\" ,\" _id\" :\" 2\" }}\n "
@@ -191,7 +191,7 @@ public void testMalformedActionLineBulk() throws IOException {
191191 }
192192
193193 @ SuppressWarnings ("unchecked" )
194- private void sendLargeBulk () throws IOException {
194+ private static void sendLargeBulk () throws IOException {
195195 Request bulkRequest = new Request ("POST" , "/index_name/_bulk" );
196196
197197 final StringBuilder bulk = new StringBuilder ();
You can’t perform that action at this time.
0 commit comments