2017-01-04 04:39:36 +08:00
|
|
|
/*
|
2021-02-03 05:41:39 +08:00
|
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
2024-09-14 04:28:03 +08:00
|
|
|
* or more contributor license agreements. Licensed under the "Elastic License
|
|
|
|
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side
|
|
|
|
* Public License v 1"; you may not use this file except in compliance with, at
|
|
|
|
* your election, the "Elastic License 2.0", the "GNU Affero General Public
|
|
|
|
* License v3.0 only", or the "Server Side Public License, v 1".
|
2017-01-04 04:39:36 +08:00
|
|
|
*/
|
2023-01-11 00:51:04 +08:00
|
|
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
2015-11-23 06:46:47 +08:00
|
|
|
|
2020-02-26 08:46:32 +08:00
|
|
|
restResources {
|
|
|
|
restTests {
|
|
|
|
includeCore '*'
|
|
|
|
}
|
Build: Rework integ test setup and shutdown to ensure stop runs when desired (#23304)
Gradle's finalizedBy on tasks only ensures one task runs after another,
but not immediately after. This is problematic for our integration tests
since it allows multiple project's integ test clusters to be
simultaneously. While this has not been a problem thus far (gradle 2.13
happened to keep the finalizedBy tasks close enough that no clusters
were running in parallel), with gradle 3.3 the task graph generation has
changed, and numerous clusters may be running simultaneously, causing
memory pressure, and thus generally slower tests, or even failure if the
system has a limited amount of memory (eg in a vagrant host).
This commit reworks how integ tests are configured. It adds an
`integTestCluster` extension to gradle which is equivalent to the current
`integTest.cluster` and moves the rest test runner task to
`integTestRunner`. The `integTest` task is then just a dummy task,
which depends on the cluster runner task, as well as the cluster stop
task. This means running `integTest` in one project will both run the
rest tests, and shut down the cluster, before running `integTest` in
another project.
2017-02-23 04:43:15 +08:00
|
|
|
}
|
|
|
|
|
2023-01-11 00:51:04 +08:00
|
|
|
dependencies {
|
|
|
|
clusterModules project(":modules:mapper-extras")
|
|
|
|
clusterModules project(":modules:ingest-common")
|
2023-05-31 16:48:56 +08:00
|
|
|
clusterModules project(":modules:reindex")
|
2023-07-13 20:28:28 +08:00
|
|
|
clusterModules project(":modules:analysis-common")
|
2023-10-27 22:02:41 +08:00
|
|
|
clusterModules project(":modules:health-shards-availability")
|
2024-03-29 00:31:50 +08:00
|
|
|
clusterModules project(":modules:data-streams")
|
2021-04-14 00:33:41 +08:00
|
|
|
}
|
|
|
|
|
2022-05-12 17:32:07 +08:00
|
|
|
tasks.named("yamlRestTest").configure {
|
2021-03-03 20:39:29 +08:00
|
|
|
systemProperty 'tests.rest.blacklist', [
|
|
|
|
'cat.templates/10_basic/No templates',
|
|
|
|
'cat.templates/10_basic/Sort templates',
|
|
|
|
'cat.templates/10_basic/Multiple template',
|
|
|
|
].join(',')
|
2018-05-16 05:16:16 +08:00
|
|
|
}
|