Skip to content

Commit

Permalink
REST: No strict warning testing for head body test
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nik9000 committed Oct 24, 2018
1 parent 4370b44 commit e0d7808
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
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));
Expand Down Expand Up @@ -75,6 +74,12 @@ public void testIndexExists() throws IOException {
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));
Expand Down

0 comments on commit e0d7808

Please sign in to comment.