mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 09:28:55 -04:00
REST tests extending JsonLogsIntegTestCase migrated to the new REST testing framework, using 'elasticsearch.internal-java-rest-test' Gradle plugin Explicit handling of test single-cluster config by checking if cluster is explicitly configured as single-node to avoid an incorrect configuration which may cause split brain. Replaced `ElasticsearchJavaPlugin` with `ElasticsearchJavaBasePlugin` in `RestTestBasePlugin` for better granularity. Additionally, updated the `DistributionDownloadPlugin` to set configurations as non-consumable and the `InternalDistributionArchiveSetupPlugin` to mark certain configurations as consumable. This ensures that configurations are correctly utilized during build setup and execution phases.
20 lines
759 B
Groovy
20 lines
759 B
Groovy
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* 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".
|
|
*/
|
|
apply plugin: 'elasticsearch.build'
|
|
apply plugin: 'elasticsearch.internal-java-rest-test'
|
|
|
|
dependencies {
|
|
testImplementation project(":libs:x-content")
|
|
testImplementation project(":test:framework")
|
|
|
|
}
|
|
|
|
tasks.named("test").configure {
|
|
systemProperty 'tests.security.manager', 'false'
|
|
}
|