[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,
|
Request request = new Request(HttpPut.METHOD_NAME,
|
||||||
new EndpointBuilder()
|
new EndpointBuilder()
|
||||||
.addCommaSeparatedPathParts(indices)
|
.addCommaSeparatedPathParts(indices)
|
||||||
.addPathPartAsIs("_lifecycle")
|
.addPathPartAsIs("_ilm")
|
||||||
.addPathPart(setPolicyRequest.policy())
|
.addPathPart(setPolicyRequest.policy())
|
||||||
.build());
|
.build());
|
||||||
Params params = new Params(request);
|
Params params = new Params(request);
|
||||||
|
|
|
@ -2597,7 +2597,7 @@ public class RequestConvertersTests extends ESTestCase {
|
||||||
String idxString = Strings.arrayToCommaDelimitedString(indices);
|
String idxString = Strings.arrayToCommaDelimitedString(indices);
|
||||||
assertThat(request.getEndpoint(),
|
assertThat(request.getEndpoint(),
|
||||||
equalTo("/" + (idxString.isEmpty() ? "" : (idxString + "/")) +
|
equalTo("/" + (idxString.isEmpty() ? "" : (idxString + "/")) +
|
||||||
"_lifecycle/" + policyName));
|
"_ilm/" + policyName));
|
||||||
assertThat(request.getParameters(), equalTo(expectedParams));
|
assertThat(request.getParameters(), equalTo(expectedParams));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue