From 1d3dacfcc3557127290373616a6656541b6a49d6 Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Thu, 17 Sep 2020 13:07:40 -0700 Subject: [PATCH] Skip release build tests for external test modules (#62579) The tests don't make sense for release builds. closes #62435 --- test/external-modules/build.gradle | 7 +++++++ test/external-modules/delayed-aggs/build.gradle | 3 --- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/test/external-modules/build.gradle b/test/external-modules/build.gradle index fa5665c14bd6c..6edede7039640 100644 --- a/test/external-modules/build.gradle +++ b/test/external-modules/build.gradle @@ -1,10 +1,17 @@ +import org.elasticsearch.gradle.info.BuildParams; + subprojects { apply plugin: 'elasticsearch.esplugin' + apply plugin: 'elasticsearch.yaml-rest-test' esplugin { name it.name licenseFile rootProject.file('licenses/APACHE-LICENSE-2.0.txt') noticeFile rootProject.file('NOTICE.txt') } + + tasks.named('yamlRestTest').configure { + it.onlyIf { BuildParams.isSnapshotBuild() } + } } diff --git a/test/external-modules/delayed-aggs/build.gradle b/test/external-modules/delayed-aggs/build.gradle index d900a92daee2f..f3b5919df10b6 100644 --- a/test/external-modules/delayed-aggs/build.gradle +++ b/test/external-modules/delayed-aggs/build.gradle @@ -17,9 +17,6 @@ * under the License. */ -apply plugin: 'elasticsearch.esplugin' -apply plugin: 'elasticsearch.yaml-rest-test' - esplugin { description 'A test module that allows to delay aggregations on shards with a configurable time' classname 'org.elasticsearch.search.aggregations.DelayedShardAggregationPlugin'