We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3054917 commit b1ed397Copy full SHA for b1ed397
test/framework/src/main/java/org/elasticsearch/test/rest/ESRestTestCase.java
@@ -1638,6 +1638,10 @@ protected Settings restClientSettings() {
1638
String token = basicAuthHeaderValue(username, new SecureString(password.toCharArray()));
1639
builder.put(ThreadContext.PREFIX + ".Authorization", token);
1640
}
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
+ }
1645
return builder.build();
1646
1647
0 commit comments