Skip to content

Commit b1ed397

Browse files
committed
Re-add some lines
1 parent 3054917 commit b1ed397

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/framework/src/main/java/org/elasticsearch/test/rest/ESRestTestCase.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1638,6 +1638,10 @@ protected Settings restClientSettings() {
16381638
String token = basicAuthHeaderValue(username, new SecureString(password.toCharArray()));
16391639
builder.put(ThreadContext.PREFIX + ".Authorization", token);
16401640
}
1641+
if (System.getProperty("tests.rest.project.id") != null) {
1642+
final var projectId = System.getProperty("tests.rest.project.id");
1643+
builder.put(ThreadContext.PREFIX + ".X-Elastic-Project-Id", projectId);
1644+
}
16411645
return builder.build();
16421646
}
16431647

0 commit comments

Comments
 (0)