Skip to content

Commit c3cc1d2

Browse files
committed
Set es.entitlement.enableForTests for all libs
1 parent 68914b9 commit c3cc1d2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

libs/build.gradle

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,15 @@ configure(childProjects.values()) {
4545
*/
4646
apply plugin: 'elasticsearch.build'
4747
}
48+
49+
// This is for any code potentially included in the server at runtime.
50+
// Omit oddball libraries that aren't in server.
51+
if (project.name != 'plugin-scanner') {
52+
project.getTasks().withType(Test.class).configureEach(test -> {
53+
if (List.of("test", "internalClusterTest").contains(test.getName())) {
54+
test.systemProperty("es.entitlement.enableForTests", "true")
55+
}
56+
})
57+
}
58+
4859
}

0 commit comments

Comments
 (0)