Skip to content

Commit 8456ce5

Browse files
authored
Fix NodeRepurposeCommandIT.testRepurpose failure (#137642)
Entitlements shouldn't be enforced on command line tests.
1 parent eb85585 commit 8456ce5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/src/internalClusterTest/java/org/elasticsearch/env/NodeRepurposeCommandIT.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@
1313
import org.elasticsearch.common.settings.Settings;
1414
import org.elasticsearch.indices.IndicesService;
1515
import org.elasticsearch.test.ESIntegTestCase;
16+
import org.elasticsearch.test.ESTestCase;
1617
import org.hamcrest.Matcher;
1718

1819
import static org.elasticsearch.test.NodeRoles.nonDataNode;
1920
import static org.elasticsearch.test.NodeRoles.nonMasterNode;
2021
import static org.hamcrest.Matchers.allOf;
2122
import static org.hamcrest.Matchers.containsString;
2223

24+
@ESTestCase.WithoutEntitlements // run commands without entitlements enforced
2325
@ESIntegTestCase.ClusterScope(scope = ESIntegTestCase.Scope.TEST, numDataNodes = 0)
2426
public class NodeRepurposeCommandIT extends ESIntegTestCase {
2527

0 commit comments

Comments
 (0)