Skip to content

Commit 44c9cda

Browse files
committed
Enable entitlements for serverless tests
1 parent 654d1f4 commit 44c9cda

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

build-tools/src/main/java/org/elasticsearch/gradle/test/TestBuildInfoPlugin.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,11 @@ public void apply(Project project) {
5757
task.into("META-INF", copy -> copy.from(testBuildInfoTask));
5858
});
5959

60-
if (project.getRootProject().getName().equals("elasticsearch")) {
61-
project.getTasks()
62-
.withType(Test.class)
63-
.matching(test -> List.of("test", "internalClusterTest").contains(test.getName()))
64-
.configureEach(test -> {
65-
test.systemProperty("es.entitlement.enableForTests", "true");
66-
});
67-
}
60+
project.getTasks()
61+
.withType(Test.class)
62+
.matching(test -> List.of("test", "internalClusterTest").contains(test.getName()))
63+
.configureEach(test -> {
64+
test.systemProperty("es.entitlement.enableForTests", "true");
65+
});
6866
}
6967
}

0 commit comments

Comments
 (0)