Skip to content

Commit 38dcdc3

Browse files
authored
Disable SecurityManager in tests (elastic#127789)
SecurityManager is already removed in 9.1 and 8.19, but those changes are too large to backport to 8.18 and 9.0. This commit changes tests there to not run with security manager to avoid security manager specific failures even though release versions only runs with entitlements. closes elastic#127784 closes elastic#127785 closes elastic#127786
1 parent de16e5a commit 38dcdc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/framework/src/main/java/org/elasticsearch/bootstrap/BootstrapForTesting.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public class BootstrapForTesting {
120120
IfConfig.logIfNecessary();
121121

122122
// install security manager if available and requested
123-
if (RuntimeVersionFeature.isSecurityManagerAvailable() && systemPropertyAsBoolean("tests.security.manager", true)) {
123+
if (RuntimeVersionFeature.isSecurityManagerAvailable() && systemPropertyAsBoolean("tests.security.manager", false)) {
124124
try {
125125
// initialize paths the same exact way as bootstrap
126126
Permissions perms = new Permissions();

0 commit comments

Comments
 (0)