Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions server/src/test/java/org/elasticsearch/cli/TerminalTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@
package org.elasticsearch.cli;

import org.elasticsearch.test.ESTestCase;
import org.elasticsearch.test.ESTestCase.WithoutEntitlements;

import java.io.StringReader;

import static org.elasticsearch.cli.Terminal.readLineToCharArray;
import static org.hamcrest.Matchers.equalTo;

@WithoutEntitlements // test & cli only - never running with entitlements enabled
public class TerminalTests extends ESTestCase {

public void testVerbosity() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.elasticsearch.index.Index;
import org.elasticsearch.indices.IndicesModule;
import org.elasticsearch.test.ESTestCase;
import org.elasticsearch.test.ESTestCase.WithoutEntitlements;
import org.elasticsearch.test.TestClusterCustomMetadata;
import org.elasticsearch.test.TestProjectCustomMetadata;
import org.elasticsearch.xcontent.NamedXContentRegistry;
Expand All @@ -46,6 +47,7 @@
import static org.hamcrest.Matchers.instanceOf;
import static org.hamcrest.Matchers.not;

@WithoutEntitlements // commands don't run with entitlements enforced
public class ElasticsearchNodeCommandTests extends ESTestCase {

public void testLoadStateWithoutMissingCustomsButPreserved() throws IOException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import org.elasticsearch.index.Index;
import org.elasticsearch.index.IndexVersion;
import org.elasticsearch.test.ESTestCase;
import org.elasticsearch.test.ESTestCase.WithoutEntitlements;
import org.hamcrest.Matcher;
import org.junit.Before;

Expand All @@ -48,6 +49,7 @@
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.not;

@WithoutEntitlements // commands don't run with entitlements enforced
public class NodeRepurposeCommandTests extends ESTestCase {

private static final Index INDEX = new Index("testIndex", "testUUID");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.gateway.PersistedClusterStateService;
import org.elasticsearch.test.ESTestCase;
import org.elasticsearch.test.ESTestCase.WithoutEntitlements;
import org.junit.After;
import org.junit.Before;

Expand All @@ -31,6 +32,7 @@
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.equalTo;

@WithoutEntitlements // commands don't run with entitlements enforced
public class OverrideNodeVersionCommandTests extends ESTestCase {

private Environment environment;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
import org.elasticsearch.test.CorruptionUtils;
import org.elasticsearch.test.DummyShardLock;
import org.elasticsearch.test.ESTestCase;
import org.elasticsearch.test.ESTestCase.WithoutEntitlements;
import org.junit.Before;

import java.io.IOException;
Expand All @@ -77,6 +78,7 @@
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.startsWith;

@WithoutEntitlements // commands don't run with entitlements enforced
public class RemoveCorruptedShardDataCommandTests extends IndexShardTestCase {

private ShardId shardId;
Expand Down