File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed
x-pack/plugin/vector-tile
src/javaRestTest/java/org/elasticsearch/xpack/vectortile Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ dependencies {
3838 clusterModules project(' :modules:analysis-common' )
3939 clusterModules project(' :modules:legacy-geo' )
4040 clusterModules project(' :modules:lang-painless' )
41+ clusterModules project(' :test:external-modules:test-error-query' )
4142}
4243
4344tasks. named(" thirdPartyAudit" ). configure {
Original file line number Diff line number Diff line change 5050public class VectorTileRestIT extends ESRestTestCase {
5151
5252 @ ClassRule
53- public static ElasticsearchCluster cluster = ElasticsearchCluster .local ()
54- .module ("vector-tile" )
55- .setting ("xpack.license.self_generated.type" , "trial" )
56- .build ();
53+ public static ElasticsearchCluster cluster = buildCluster ();
54+
55+ private static ElasticsearchCluster buildCluster () {
56+ var builder = ElasticsearchCluster .local ().module ("vector-tile" ).setting ("xpack.license.self_generated.type" , "trial" );
57+
58+ if (Build .current ().isSnapshot ()) {
59+ // This module is not available in non-snapshot builds
60+ // The tests below that use it are disabled in non-snapshot builds
61+ builder .module ("test-error-query" );
62+ }
63+
64+ return builder .build ();
65+ }
5766
5867 private static final String INDEX_POINTS = "index-points" ;
5968 private static final String INDEX_POLYGON = "index-polygon" ;
You can’t perform that action at this time.
0 commit comments