mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 01:22:26 -04:00
Move raw path into HttpPreRequest (#113231)
Currently, the raw path is only available from the RestRequest. This makes the logic to determine if a handler supports streaming more challenging to evaluate. This commit moves the raw path into pre request to allow easier streaming support logic.
This commit is contained in:
parent
b9855b8e4e
commit
c5caf84e2d
5 changed files with 38 additions and 19 deletions
|
@ -29,6 +29,12 @@ import static org.hamcrest.Matchers.equalTo;
|
|||
@ESIntegTestCase.ClusterScope(scope = ESIntegTestCase.Scope.SUITE, supportsDedicatedMasters = false, numDataNodes = 2, numClientNodes = 0)
|
||||
public class IncrementalBulkRestIT extends HttpSmokeTestCase {
|
||||
|
||||
public void testBulkUriMatchingDoesNotMatchBulkCapabilitiesApi() throws IOException {
|
||||
Request request = new Request("GET", "/_capabilities?method=GET&path=%2F_bulk&capabilities=failure_store_status&pretty");
|
||||
Response response = getRestClient().performRequest(request);
|
||||
assertEquals(200, response.getStatusLine().getStatusCode());
|
||||
}
|
||||
|
||||
public void testBulkMissingBody() throws IOException {
|
||||
Request request = new Request(randomBoolean() ? "POST" : "PUT", "/_bulk");
|
||||
request.setJsonEntity("");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue