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.
This commit is contained in:
parent
4370b44ef0
commit
e0d7808148
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue