From 2c078bf59605792c7e4e644c5fbd5b2e3bc4f4c6 Mon Sep 17 00:00:00 2001 From: Suraj Singh Date: Mon, 14 Mar 2022 10:55:21 -0700 Subject: [PATCH] Fix unit test failure Signed-off-by: Suraj Singh --- .../org/opensearch/indices/TermsLookupTests.java | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/server/src/test/java/org/opensearch/indices/TermsLookupTests.java b/server/src/test/java/org/opensearch/indices/TermsLookupTests.java index ad1163515d04c..661995a22c507 100644 --- a/server/src/test/java/org/opensearch/indices/TermsLookupTests.java +++ b/server/src/test/java/org/opensearch/indices/TermsLookupTests.java @@ -93,21 +93,6 @@ public void testSerialization() throws IOException { } } - public void testXContentParsingWithType() throws IOException { - XContentParser parser = createParser( - JsonXContent.jsonXContent, - "{ \"index\" : \"index\", \"id\" : \"id\", \"path\" : \"path\", \"routing\" : \"routing\" }" - ); - - TermsLookup tl = TermsLookup.parseTermsLookup(parser); - assertEquals("index", tl.index()); - assertEquals("id", tl.id()); - assertEquals("path", tl.path()); - assertEquals("routing", tl.routing()); - - assertWarnings("Deprecated field [type] used, this field is unused and will be removed entirely"); - } - public void testXContentParsing() throws IOException { XContentParser parser = createParser( JsonXContent.jsonXContent,