Skip to content

Commit 39a58e2

Browse files
authored
Conditionally mute synonyms config access test (#119140)
This synonyms test checks certain config files cannot be accessed. It relies on security manager, which is not enabled in JDK 24. Until the entitlement based replacement is available, this commit mutes the test. see #119130
1 parent 04dbe3c commit 39a58e2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

modules/analysis-common/build.gradle

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,16 @@ artifacts {
3737
tasks.named("yamlRestCompatTestTransform").configure { task ->
3838
task.replaceValueInMatch("tokens.0.token", "absenț", "romanian")
3939
}
40+
41+
tasks.named("yamlRestTest").configure {
42+
if (buildParams.getRuntimeJavaVersion().map{ it.majorVersion.toInteger() }.get() >= 24 ||
43+
"-Des.entitlements.enabled=true".equals(System.getProperty("tests.jvm.argline"))) {
44+
systemProperty 'tests.rest.blacklist',
45+
[
46+
// AWAITSFIX: this test relies on security manager, which doesn't exist in JDK 24.
47+
// and entitlements don't yet replace the functionality.
48+
// see https://github.com/elastic/elasticsearch/issues/119130
49+
'analysis-common/40_token_filters/stemmer_override file access',
50+
].join(',')
51+
}
52+
}

0 commit comments

Comments
 (0)