Skip to content

Commit

Permalink
Fix FullClusterRestartIT#testRollupIDSchemeAfterRestart by adding a m…
Browse files Browse the repository at this point in the history
…issing expected warning.
  • Loading branch information
jtibshirani committed Jan 2, 2019
1 parent 42bb2ba commit 265fdce
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import org.elasticsearch.common.xcontent.support.XContentMapValues;
import org.elasticsearch.rest.RestStatus;
import org.elasticsearch.rest.action.document.RestGetAction;
import org.elasticsearch.rest.action.document.RestIndexAction;
import org.elasticsearch.rest.action.search.RestSearchAction;
import org.elasticsearch.test.StreamsUtils;
import org.elasticsearch.test.rest.ESRestTestCase;
Expand Down Expand Up @@ -365,6 +366,7 @@ public void testRollupIDSchemeAfterRestart() throws Exception {

final Request indexRequest = new Request("POST", "/id-test-rollup/doc/2");
indexRequest.setJsonEntity("{\"timestamp\":\"2018-01-02T00:00:01\",\"value\":345}");
indexRequest.setOptions(expectWarnings(RestIndexAction.TYPES_DEPRECATION_MESSAGE));
client().performRequest(indexRequest);

assertRollUpJob("rollup-id-test");
Expand Down

0 comments on commit 265fdce

Please sign in to comment.