From e0d7808148c6904dfdc66622587052a92d6a4f0d Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Wed, 24 Oct 2018 11:15:44 -0400 Subject: [PATCH] REST: No strict warning testing for head body test Our tests that HEAD requests don't have a body was hitting a warning. For now we'll run that test without "strict" warnings mode enabled. --- .../org/elasticsearch/rest/Netty4HeadBodyIsEmptyIT.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/transport-netty4/src/test/java/org/elasticsearch/rest/Netty4HeadBodyIsEmptyIT.java b/modules/transport-netty4/src/test/java/org/elasticsearch/rest/Netty4HeadBodyIsEmptyIT.java index 17b374ecb37..185916ffe3c 100644 --- a/modules/transport-netty4/src/test/java/org/elasticsearch/rest/Netty4HeadBodyIsEmptyIT.java +++ b/modules/transport-netty4/src/test/java/org/elasticsearch/rest/Netty4HeadBodyIsEmptyIT.java @@ -38,7 +38,6 @@ import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.greaterThan; public class Netty4HeadBodyIsEmptyIT extends ESRestTestCase { - public void testHeadRoot() throws IOException { headTestCase("/", emptyMap(), greaterThan(0)); headTestCase("/", singletonMap("pretty", ""), greaterThan(0)); @@ -75,6 +74,12 @@ public class Netty4HeadBodyIsEmptyIT extends ESRestTestCase { headTestCase("/test", singletonMap("pretty", "true"), greaterThan(0)); } + @Override + protected boolean getStrictDeprecationMode() { + // Remove this override when we remove the reference to types below + return false; + } + public void testTypeExists() throws IOException { createTestDoc(); headTestCase("/test/_mapping/test", emptyMap(), greaterThan(0));