Skip to content

Commit c77c882

Browse files
committed
Disable async search rest tests in release builds (elastic#131132)
These tests rely on test-only modules which can only be installed in snapshot builds of ES. This disables these tests in our release builds. Closes elastic#130978
1 parent fa7b8dd commit c77c882

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

x-pack/plugin/async-search/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.elasticsearch.gradle.testclusters.StandaloneRestIntegTestTask
2+
13
apply plugin: 'elasticsearch.internal-es-plugin'
24
apply plugin: 'elasticsearch.internal-cluster-test'
35
apply plugin: 'elasticsearch.internal-java-rest-test'
@@ -34,3 +36,8 @@ restResources {
3436
include '_common', 'indices', 'index', 'async_search'
3537
}
3638
}
39+
40+
tasks.withType(StandaloneRestIntegTestTask).configureEach {
41+
def isSnapshot = buildParams.snapshotBuild
42+
it.onlyIf("snapshot build") { isSnapshot }
43+
}

0 commit comments

Comments
 (0)