Skip to content

Commit

Permalink
[Type removal] Remove testTypesStillParsedForBulkMonitoring as it is …
Browse files Browse the repository at this point in the history
…no longer present in codebase

Signed-off-by: Suraj Singh <[email protected]>
  • Loading branch information
dreamer-89 committed May 23, 2022
1 parent f21b2f6 commit ecabb89
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,19 +207,6 @@ public void testFailOnExplicitIndex() {
assertEquals("explicit index in bulk is not allowed", ex.getMessage());
}

public void testTypesStillParsedForBulkMonitoring() throws IOException {
BytesArray request = new BytesArray("{ \"index\":{ \"_type\": \"quux\", \"_id\": \"bar\" } }\n{}\n");
BulkRequestParser parser = new BulkRequestParser(false);
final AtomicBoolean parsed = new AtomicBoolean();
parser.parse(request, "foo", null, null, null, null, false, XContentType.JSON, indexRequest -> {
assertFalse(parsed.get());
assertEquals("foo", indexRequest.index());
assertEquals("bar", indexRequest.id());
parsed.set(true);
}, req -> fail(), req -> fail());
assertTrue(parsed.get());
}

public void testParseDeduplicatesParameterStrings() throws IOException {
BytesArray request = new BytesArray(
"{ \"index\":{ \"_index\": \"bar\", \"pipeline\": \"foo\", \"routing\": \"blub\"} }\n{}\n"
Expand Down

0 comments on commit ecabb89

Please sign in to comment.