Skip to content

Commit 7ff3694

Browse files
authored
Use @WithoutEntitlements for terminal tests (#130614) (#130630)
1 parent b9fb1b9 commit 7ff3694

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libs/cli/src/test/java/org/elasticsearch/cli/TerminalTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
package org.elasticsearch.cli;
1111

1212
import org.elasticsearch.test.ESTestCase;
13+
import org.elasticsearch.test.ESTestCase.WithoutEntitlements;
1314

1415
import java.io.IOException;
1516
import java.io.OutputStream;
@@ -22,6 +23,7 @@
2223
import static org.mockito.Mockito.verify;
2324
import static org.mockito.Mockito.verifyNoMoreInteractions;
2425

26+
@WithoutEntitlements // CLI tools don't run with entitlements enforced
2527
public class TerminalTests extends ESTestCase {
2628

2729
public void testSystemTerminalIfRedirected() {

0 commit comments

Comments
 (0)