File tree Expand file tree Collapse file tree 5 files changed +10
-0
lines changed
server/src/test/java/org/elasticsearch Expand file tree Collapse file tree 5 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 1010package org .elasticsearch .cli ;
1111
1212import org .elasticsearch .test .ESTestCase ;
13+ import org .elasticsearch .test .ESTestCase .WithoutEntitlements ;
1314
1415import java .io .StringReader ;
1516
1617import static org .elasticsearch .cli .Terminal .readLineToCharArray ;
1718import static org .hamcrest .Matchers .equalTo ;
1819
20+ @ WithoutEntitlements // test & cli only - never running with entitlements enabled
1921public class TerminalTests extends ESTestCase {
2022
2123 public void testVerbosity () throws Exception {
Original file line number Diff line number Diff line change 2828import org .elasticsearch .index .Index ;
2929import org .elasticsearch .indices .IndicesModule ;
3030import org .elasticsearch .test .ESTestCase ;
31+ import org .elasticsearch .test .ESTestCase .WithoutEntitlements ;
3132import org .elasticsearch .test .TestClusterCustomMetadata ;
3233import org .elasticsearch .test .TestProjectCustomMetadata ;
3334import org .elasticsearch .xcontent .NamedXContentRegistry ;
4647import static org .hamcrest .Matchers .instanceOf ;
4748import static org .hamcrest .Matchers .not ;
4849
50+ @ WithoutEntitlements // commands don't run with entitlements enforced
4951public class ElasticsearchNodeCommandTests extends ESTestCase {
5052
5153 public void testLoadStateWithoutMissingCustomsButPreserved () throws IOException {
Original file line number Diff line number Diff line change 2727import org .elasticsearch .index .Index ;
2828import org .elasticsearch .index .IndexVersion ;
2929import org .elasticsearch .test .ESTestCase ;
30+ import org .elasticsearch .test .ESTestCase .WithoutEntitlements ;
3031import org .hamcrest .Matcher ;
3132import org .junit .Before ;
3233
4849import static org .hamcrest .Matchers .containsString ;
4950import static org .hamcrest .Matchers .not ;
5051
52+ @ WithoutEntitlements // commands don't run with entitlements enforced
5153public class NodeRepurposeCommandTests extends ESTestCase {
5254
5355 private static final Index INDEX = new Index ("testIndex" , "testUUID" );
Original file line number Diff line number Diff line change 2121import org .elasticsearch .common .settings .Settings ;
2222import org .elasticsearch .gateway .PersistedClusterStateService ;
2323import org .elasticsearch .test .ESTestCase ;
24+ import org .elasticsearch .test .ESTestCase .WithoutEntitlements ;
2425import org .junit .After ;
2526import org .junit .Before ;
2627
3132import static org .hamcrest .Matchers .containsString ;
3233import static org .hamcrest .Matchers .equalTo ;
3334
35+ @ WithoutEntitlements // commands don't run with entitlements enforced
3436public class OverrideNodeVersionCommandTests extends ESTestCase {
3537
3638 private Environment environment ;
Original file line number Diff line number Diff line change 5454import org .elasticsearch .test .CorruptionUtils ;
5555import org .elasticsearch .test .DummyShardLock ;
5656import org .elasticsearch .test .ESTestCase ;
57+ import org .elasticsearch .test .ESTestCase .WithoutEntitlements ;
5758import org .junit .Before ;
5859
5960import java .io .IOException ;
7778import static org .hamcrest .Matchers .is ;
7879import static org .hamcrest .Matchers .startsWith ;
7980
81+ @ WithoutEntitlements // commands don't run with entitlements enforced
8082public class RemoveCorruptedShardDataCommandTests extends IndexShardTestCase {
8183
8284 private ShardId shardId ;
You can’t perform that action at this time.
0 commit comments