Skip to content

Commit

Permalink
char_filter pattern_replace error requires at least java 21 (elastic#…
Browse files Browse the repository at this point in the history
…116507) (elastic#116597)

This test requires at least java 21, skip it otherwise.

closes: elastic#116405 closes:
elastic#116134
(cherry picked from commit 91b4b1e)
  • Loading branch information
benwtrent authored Nov 11, 2024
1 parent acf2a96 commit 6e9e2b4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion modules/analysis-common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* your election, the "Elastic License 2.0", the "GNU Affero General Public
* License v3.0 only", or the "Server Side Public License, v 1".
*/
import org.elasticsearch.gradle.Version
import org.elasticsearch.gradle.internal.info.BuildParams

apply plugin: 'elasticsearch.internal-yaml-rest-test'
apply plugin: 'elasticsearch.yaml-rest-compat-test'
Expand All @@ -30,6 +30,15 @@ dependencies {
clusterModules project(':modules:mapper-extras')
}

tasks.named("yamlRestTest").configure { task->
if (BuildParams.getRuntimeJavaVersion().majorVersion.toInteger() < 21) {
// Requires at least Java 21
systemProperty 'tests.rest.blacklist', [
"analysis-common/50_char_filters/pattern_replace error handling (too complex pattern)"
].join(',')
}
}

tasks.named("yamlRestTestV7CompatTransform").configure { task ->
task.skipTest("indices.analyze/10_analyze/htmlStrip_deprecated", "Cleanup versioned deprecations in analysis #41560")
task.skipTest("analysis-common/40_token_filters/delimited_payload_filter_error", "Remove preconfigured delimited_payload_filter #43686")
Expand Down

0 comments on commit 6e9e2b4

Please sign in to comment.