Reindex: Fixed typo in assertion failure message (#30619)
Fix a typo in an assertion failure message.
This commit is contained in:
parent
8ff9baeb82
commit
f0da3da6b0
|
@ -115,7 +115,7 @@ public class RestReindexAction extends AbstractBaseReindexRestHandler<ReindexReq
|
||||||
@Override
|
@Override
|
||||||
protected ReindexRequest buildRequest(RestRequest request) throws IOException {
|
protected ReindexRequest buildRequest(RestRequest request) throws IOException {
|
||||||
if (request.hasParam("pipeline")) {
|
if (request.hasParam("pipeline")) {
|
||||||
throw new IllegalArgumentException("_reindex doesn't support [pipeline] as a query parmaeter. "
|
throw new IllegalArgumentException("_reindex doesn't support [pipeline] as a query parameter. "
|
||||||
+ "Specify it in the [dest] object instead.");
|
+ "Specify it in the [dest] object instead.");
|
||||||
}
|
}
|
||||||
ReindexRequest internal = new ReindexRequest(new SearchRequest(), new IndexRequest());
|
ReindexRequest internal = new ReindexRequest(new SearchRequest(), new IndexRequest());
|
||||||
|
|
|
@ -149,7 +149,7 @@ public class RestReindexActionTests extends ESTestCase {
|
||||||
request.withParams(singletonMap("pipeline", "doesn't matter"));
|
request.withParams(singletonMap("pipeline", "doesn't matter"));
|
||||||
Exception e = expectThrows(IllegalArgumentException.class, () -> action.buildRequest(request.build()));
|
Exception e = expectThrows(IllegalArgumentException.class, () -> action.buildRequest(request.build()));
|
||||||
|
|
||||||
assertEquals("_reindex doesn't support [pipeline] as a query parmaeter. Specify it in the [dest] object instead.", e.getMessage());
|
assertEquals("_reindex doesn't support [pipeline] as a query parameter. Specify it in the [dest] object instead.", e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testSetScrollTimeout() throws IOException {
|
public void testSetScrollTimeout() throws IOException {
|
||||||
|
|
Loading…
Reference in New Issue