[TEST] Fix HLRC using pre-rename endpoint for setting lifecycle policy
This commit is contained in:
parent
6986c9f700
commit
0a6a48b91b
|
@ -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);
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue