Skip to content

Commit 68914b9

Browse files
committed
Add @WithoutEntitlements to tests that run ES nodes
1 parent 677d99d commit 68914b9

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

test/framework/src/main/java/org/elasticsearch/test/ESIntegTestCase.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@
285285
* </ul>
286286
*/
287287
@LuceneTestCase.SuppressFileSystems("ExtrasFS") // doesn't work with potential multi data path from test cluster yet
288+
@ESTestCase.WithoutEntitlements // ES-12042
288289
public abstract class ESIntegTestCase extends ESTestCase {
289290

290291
/** node names of the corresponding clusters will start with these prefixes */

test/framework/src/main/java/org/elasticsearch/test/ESSingleNodeTestCase.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
* A test that keep a singleton node started for all tests that can be used to get
9191
* references to Guice injectors in unit tests.
9292
*/
93+
@ESTestCase.WithoutEntitlements // ES-12042
9394
public abstract class ESSingleNodeTestCase extends ESTestCase {
9495

9596
private static Node NODE = null;

test/framework/src/main/java/org/elasticsearch/test/ESTestCase.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@
164164
import java.io.IOException;
165165
import java.io.InputStream;
166166
import java.lang.annotation.ElementType;
167+
import java.lang.annotation.Inherited;
167168
import java.lang.annotation.Retention;
168169
import java.lang.annotation.RetentionPolicy;
169170
import java.lang.annotation.Target;
@@ -500,6 +501,7 @@ protected void afterIfSuccessful() throws Exception {}
500501
*/
501502
@Retention(RetentionPolicy.RUNTIME)
502503
@Target(ElementType.TYPE)
504+
@Inherited
503505
public @interface WithoutEntitlements {
504506
}
505507

@@ -509,6 +511,7 @@ protected void afterIfSuccessful() throws Exception {}
509511
*/
510512
@Retention(RetentionPolicy.RUNTIME)
511513
@Target(ElementType.TYPE)
514+
@Inherited
512515
public @interface WithEntitlementsOnTestCode {
513516
}
514517

0 commit comments

Comments
 (0)