Skip to content

Commit abced4b

Browse files
Disable SecurityManager in tests (elastic#127789) (elastic#127794)
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 Co-authored-by: Elastic Machine <[email protected]>
1 parent 2797837 commit abced4b

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)