[TEST] Fix HLRC using pre-rename endpoint for setting lifecycle policy

This commit is contained in:
Lee Hinman 2018-08-02 15:27:02 -06:00
parent 6986c9f700
commit 0a6a48b91b
2 changed files with 2 additions and 2 deletions

View File

@ -1159,7 +1159,7 @@ final class RequestConverters {
Request request = new Request(HttpPut.METHOD_NAME,
new EndpointBuilder()
.addCommaSeparatedPathParts(indices)
.addPathPartAsIs("_lifecycle")
.addPathPartAsIs("_ilm")
.addPathPart(setPolicyRequest.policy())
.build());
Params params = new Params(request);

View File

@ -2597,7 +2597,7 @@ public class RequestConvertersTests extends ESTestCase {
String idxString = Strings.arrayToCommaDelimitedString(indices);
assertThat(request.getEndpoint(),
equalTo("/" + (idxString.isEmpty() ? "" : (idxString + "/")) +
"_lifecycle/" + policyName));
"_ilm/" + policyName));
assertThat(request.getParameters(), equalTo(expectedParams));
}