Skip to content

Commit 3a36909

Browse files
authored
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.
1 parent 109b38f commit 3a36909

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qa/smoke-test-http/src/test/java/org/elasticsearch/http/TestDeprecationHeaderRestAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public RestChannelConsumer prepareRequest(RestRequest request, NodeClient client
100100

101101
builder.startObject().startArray("settings");
102102
for (String setting : settings) {
103-
builder.startObject().field(setting, SETTINGS_MAP.get(setting).getRaw(this.settings)).endObject();
103+
builder.startObject().field(setting, SETTINGS_MAP.get(setting).get(this.settings)).endObject();
104104
}
105105
builder.endArray().endObject();
106106
channel.sendResponse(new BytesRestResponse(RestStatus.OK, builder));

0 commit comments

Comments
 (0)