Skip to content

Commit 73143f4

Browse files
Fix test compilation following upstream change to base class
1 parent 46d4aa4 commit 73143f4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/external-modules/multi-project/src/javaRestTest/java/org/elasticsearch/action/admin/cluster/node/stats/NodesStatsMultiProjectIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ protected Settings restClientSettings() {
6161

6262
@After
6363
public void deletePipelines() throws IOException {
64-
for (String projectId : listProjects()) {
64+
for (String projectId : getProjectIds(adminClient())) {
6565
for (String pipelineId : getPipelineIds(projectId)) {
6666
client().performRequest(setRequestProjectId(new Request("DELETE", "/_ingest/pipeline/" + pipelineId), projectId));
6767
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2826,7 +2826,7 @@ protected void assertProjectIds(RestClient client, List<String> expectedProjects
28262826
);
28272827
}
28282828

2829-
private Collection<String> getProjectIds(RestClient client) throws IOException {
2829+
protected Collection<String> getProjectIds(RestClient client) throws IOException {
28302830
assert multiProjectEnabled;
28312831
final Request request = new Request("GET", "/_cluster/state/routing_table?multi_project=true");
28322832
try {

0 commit comments

Comments
 (0)