This commit moves the modules REST tests to the newly introduced yamlRestTest source set. A few tests have also been re-named to include the correct IT suffix. Without changing the names, the testing conventions task would fail since now that the YAML tests are no longer present pacify the convention. These tests have moved to the internalClusterTest source set. related: #56841
This commit is contained in:
parent
bde92fc5fc
commit
665b7b7bd8
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
apply plugin: 'elasticsearch.rest-resources'
|
||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
||||
|
||||
esplugin {
|
||||
description 'Adds aggregations whose input are a list of numeric fields and output includes a matrix.'
|
||||
|
@ -29,3 +29,5 @@ restResources {
|
|||
includeCore '_common', 'indices', 'cluster', 'index', 'search', 'nodes'
|
||||
}
|
||||
}
|
||||
|
||||
integTest.enabled = false
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
apply plugin: 'elasticsearch.rest-resources'
|
||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
||||
|
||||
esplugin {
|
||||
description 'Adds "built in" analyzers to Elasticsearch.'
|
||||
|
|
|
@ -32,7 +32,7 @@ import static org.elasticsearch.index.query.QueryBuilders.queryStringQuery;
|
|||
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
|
||||
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertHitCount;
|
||||
|
||||
public class QueryStringWithAnalyzersTests extends ESIntegTestCase {
|
||||
public class QueryStringWithAnalyzersIT extends ESIntegTestCase {
|
||||
@Override
|
||||
protected Collection<Class<? extends Plugin>> nodePlugins() {
|
||||
return Arrays.asList(CommonAnalysisPlugin.class);
|
|
@ -16,13 +16,21 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
apply plugin: 'elasticsearch.rest-resources'
|
||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
||||
|
||||
esplugin {
|
||||
description 'Placeholder plugin for geospatial features in ES. only registers geo_shape field mapper for now'
|
||||
classname 'org.elasticsearch.geo.GeoPlugin'
|
||||
}
|
||||
|
||||
artifacts {
|
||||
restTests(new File(projectDir, "src/test/resources/rest-api-spec/test"))
|
||||
restResources {
|
||||
restApi {
|
||||
includeCore '_common', 'indices', 'index', 'search'
|
||||
}
|
||||
}
|
||||
artifacts {
|
||||
restTests(project.file('src/yamlRestTest/resources/rest-api-spec/test'))
|
||||
}
|
||||
|
||||
integTest.enabled = false
|
||||
test.enabled = false
|
||||
|
|
|
@ -1,28 +0,0 @@
|
|||
/*
|
||||
* Licensed to Elasticsearch under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.geo;
|
||||
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
|
||||
public class GeoTests extends ESTestCase {
|
||||
|
||||
public void testStub() {
|
||||
// the build expects unit tests to exist in a module, so here one is.
|
||||
}
|
||||
}
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
apply plugin: 'elasticsearch.rest-resources'
|
||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
||||
|
||||
esplugin {
|
||||
description 'Module for ingest processors that do not require additional security permissions or have large dependencies and resources'
|
||||
|
@ -36,7 +36,7 @@ restResources {
|
|||
}
|
||||
}
|
||||
|
||||
testClusters.integTest {
|
||||
testClusters.all {
|
||||
// Needed in order to test ingest pipeline templating:
|
||||
// (this is because the integTest node is not using default distribution, but only the minimal number of required modules)
|
||||
module project(':modules:lang-mustache').tasks.bundlePlugin.archiveFile
|
||||
|
|
|
@ -19,7 +19,8 @@
|
|||
|
||||
import org.apache.tools.ant.taskdefs.condition.Os
|
||||
|
||||
apply plugin: 'elasticsearch.rest-resources'
|
||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
||||
apply plugin: 'elasticsearch.internal-cluster-test'
|
||||
|
||||
esplugin {
|
||||
description 'Ingest processor that uses looksup geo data based on ip adresses using the Maxmind geo database'
|
||||
|
@ -42,6 +43,8 @@ restResources {
|
|||
}
|
||||
}
|
||||
|
||||
integTest.enabled = false
|
||||
|
||||
task copyDefaultGeoIp2DatabaseFiles(type: Copy) {
|
||||
from { zipTree(configurations.testCompileClasspath.files.find { it.name.contains('geolite2-databases') }) }
|
||||
into "${project.buildDir}/ingest-geoip"
|
||||
|
|
|
@ -50,7 +50,7 @@ import static org.elasticsearch.test.NodeRoles.nonIngestNode;
|
|||
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
|
||||
import static org.hamcrest.Matchers.equalTo;
|
||||
|
||||
public class GeoIpProcessorNonIngestNodeTests extends ESIntegTestCase {
|
||||
public class GeoIpProcessorNonIngestNodeIT extends ESIntegTestCase {
|
||||
|
||||
public static class IngestGeoIpSettingsPlugin extends Plugin {
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
apply plugin: 'elasticsearch.rest-resources'
|
||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
||||
|
||||
esplugin {
|
||||
description 'Ingest processor that extracts information from a user agent'
|
||||
|
@ -29,6 +29,8 @@ restResources {
|
|||
}
|
||||
}
|
||||
|
||||
testClusters.integTest {
|
||||
testClusters.all {
|
||||
extraConfigFile 'ingest-user-agent/test-regexes.yml', file('src/test/test-regexes.yml')
|
||||
}
|
||||
|
||||
integTest.enabled = false
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
apply plugin: 'elasticsearch.rest-resources'
|
||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
||||
apply plugin: 'elasticsearch.internal-cluster-test'
|
||||
|
||||
esplugin {
|
||||
description 'Lucene expressions integration for Elasticsearch'
|
||||
|
@ -36,6 +37,8 @@ restResources {
|
|||
}
|
||||
}
|
||||
|
||||
integTest.enabled = false
|
||||
|
||||
tasks.named("dependencyLicenses").configure {
|
||||
mapping from: /lucene-.*/, to: 'lucene'
|
||||
mapping from: /asm-.*/, to: 'asm'
|
||||
|
|
|
@ -61,7 +61,7 @@ import static org.hamcrest.Matchers.greaterThan;
|
|||
import static org.hamcrest.Matchers.notNullValue;
|
||||
|
||||
// TODO: please convert to unit tests!
|
||||
public class MoreExpressionTests extends ESIntegTestCase {
|
||||
public class MoreExpressionIT extends ESIntegTestCase {
|
||||
|
||||
@Override
|
||||
protected Collection<Class<? extends Plugin>> nodePlugins() {
|
|
@ -36,7 +36,7 @@ import java.util.Collections;
|
|||
import static org.hamcrest.Matchers.containsString;
|
||||
|
||||
//TODO: please convert to unit tests!
|
||||
public class StoredExpressionTests extends ESIntegTestCase {
|
||||
public class StoredExpressionIT extends ESIntegTestCase {
|
||||
@Override
|
||||
protected Settings nodeSettings(int nodeOrdinal) {
|
||||
Settings.Builder builder = Settings.builder().put(super.nodeSettings(nodeOrdinal));
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
apply plugin: 'elasticsearch.rest-resources'
|
||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
||||
|
||||
esplugin {
|
||||
description 'Mustache scripting integration for Elasticsearch'
|
||||
|
|
|
@ -18,15 +18,15 @@
|
|||
*/
|
||||
|
||||
import org.elasticsearch.gradle.testclusters.DefaultTestClustersTask;
|
||||
apply plugin: 'elasticsearch.rest-resources'
|
||||
apply plugin: 'elasticsearch.validate-rest-spec'
|
||||
apply plugin: 'elasticsearch.yaml-rest-test'
|
||||
|
||||
esplugin {
|
||||
description 'An easy, safe and fast scripting language for Elasticsearch'
|
||||
classname 'org.elasticsearch.painless.PainlessPlugin'
|
||||
}
|
||||
|
||||
testClusters.integTest {
|
||||
testClusters.all {
|
||||
module project(':modules:mapper-extras').tasks.bundlePlugin.archiveFile
|
||||
systemProperty 'es.scripting.update.ctx_in_params', 'false'
|
||||
// TODO: remove this once cname is prepended to transport.publish_address by default in 8.0
|
||||
|
@ -54,6 +54,8 @@ restResources {
|
|||
}
|
||||
}
|
||||
|
||||
integTest.enabled = false
|
||||
|
||||
test {
|
||||
// in WhenThingsGoWrongTests we intentionally generate an out of memory error, this prevents the heap from being dumped to disk
|
||||
jvmArgs '-XX:-OmitStackTraceInFastThrow', '-XX:-HeapDumpOnOutOfMemoryError'
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue