Skip to content

Commit a7e45e3

Browse files
committed
Add some WithoutEntitlements
1 parent 575b198 commit a7e45e3

File tree

5 files changed

+7
-0
lines changed

5 files changed

+7
-0
lines changed

server/src/test/java/org/elasticsearch/ExceptionSerializationTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@
135135
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
136136
import static org.hamcrest.Matchers.instanceOf;
137137

138+
@ESTestCase.WithoutEntitlements
138139
public class ExceptionSerializationTests extends ESTestCase {
139140

140141
public void testExceptionRegistration() throws IOException, URISyntaxException {

test/framework/src/main/java/org/elasticsearch/index/engine/EngineTestCase.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@
151151
import static org.hamcrest.Matchers.notNullValue;
152152

153153
@SuppressWarnings("HiddenField")
154+
@ESTestCase.WithoutEntitlements
154155
public abstract class EngineTestCase extends ESTestCase {
155156

156157
protected final ShardId shardId = new ShardId(new Index("index", "_na_"), 0);

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 // TODO: 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
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)