File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed
x-pack/plugin/vector-tile/src/javaRestTest/java/org/elasticsearch/xpack/vectortile Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change 5050public class VectorTileRestIT extends ESRestTestCase {
5151
5252 @ ClassRule
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-
53+ public static ElasticsearchCluster cluster = ElasticsearchCluster .local ().module ("vector-tile" ).apply (c -> {
5854 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" );
55+ c .module ("test-error-query" );
6256 }
63-
64- return builder .build ();
65- }
57+ }).setting ("xpack.license.self_generated.type" , "trial" ).build ();
6658
6759 private static final String INDEX_POINTS = "index-points" ;
6860 private static final String INDEX_POLYGON = "index-polygon" ;
You can’t perform that action at this time.
0 commit comments