File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/ssl Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 1616import org .elasticsearch .core .PathUtils ;
1717import org .elasticsearch .env .Environment ;
1818import org .elasticsearch .env .TestEnvironment ;
19+ import org .elasticsearch .jdk .RuntimeVersionFeature ;
1920import org .elasticsearch .test .ESTestCase ;
2021import org .elasticsearch .xpack .core .ssl .SSLService ;
2122import org .junit .Before ;
@@ -362,6 +363,11 @@ private void checkBlockedResource(
362363 String configKey ,
363364 BiConsumer <String , Settings .Builder > configure
364365 ) throws Exception {
366+ assumeTrue (
367+ "Requires Security Manager to block access, entitlements are not checked for unit tests" ,
368+ RuntimeVersionFeature .isSecurityManagerAvailable ()
369+ );
370+
365371 final String prefix = randomSslPrefix ();
366372 final Settings .Builder settings = Settings .builder ();
367373 configure .accept (prefix , settings );
You can’t perform that action at this time.
0 commit comments