Skip to content

Commit ece0ca1

Browse files
authored
Add error_trace parameter to REST test helper (#54259)
Today the `XPackRestTestHelper` makes some REST calls without the `error_trace` parameter, so that if they fail due to an exception we do not see very much detail. This commit adds the `error_trace` parameter to help identify why these REST calls fail.
1 parent 06ab3b5 commit ece0ca1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

x-pack/qa/src/main/java/org/elasticsearch/xpack/test/rest/XPackRestTestHelper.java

+2
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public static void waitForTemplates(RestClient client, List<String> expectedTemp
4343
assertBusy(() -> {
4444
Request request = new Request("GET", "/_cat/nodes");
4545
request.addParameter("h", "master,version");
46+
request.addParameter("error_trace", "true");
4647
String response = EntityUtils.toString(client.performRequest(request).getEntity());
4748

4849
for (String line : response.split("\n")) {
@@ -56,6 +57,7 @@ public static void waitForTemplates(RestClient client, List<String> expectedTemp
5657

5758
assertBusy(() -> {
5859
final Request request = new Request("GET", "_template");
60+
request.addParameter("error_trace", "true");
5961

6062
String string = EntityUtils.toString(client.performRequest(request).getEntity());
6163
Map<String, Object> response = XContentHelper.convertToMap(JsonXContent.jsonXContent, string, false);

0 commit comments

Comments
 (0)