Remove use of Setting#getRaw in deprecation tests (#47262)

This commit removes a use of Setting#getRaw from the deprecation header
tests. The use of Setting#getRaw is not needed here, the x-content
infrastructure will take care of emitting the appropriate values here,
and so the caller does not need to convert these to string
representations of the settings values.
This commit is contained in:
Jason Tedor 2019-09-30 06:33:39 -04:00
parent 2cba323b4e
commit 7eed3e5585
No known key found for this signature in database
GPG Key ID: FA89F05560F16BC5

View File

@ -109,7 +109,7 @@ public class TestDeprecationHeaderRestAction extends BaseRestHandler {
builder.startObject().startArray("settings");
for (String setting : settings) {
builder.startObject().field(setting, SETTINGS_MAP.get(setting).getRaw(this.settings)).endObject();
builder.startObject().field(setting, SETTINGS_MAP.get(setting).get(this.settings)).endObject();
}
builder.endArray().endObject();
channel.sendResponse(new BytesRestResponse(RestStatus.OK, builder));