mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-20 03:45:02 +00:00
For 1/2 the plugins in x-pack, the integTest task is now a no-op and all of the tests are now executed via a test, yamlRestTest, javaRestTest, or internalClusterTest. This includes the following projects: security, spatial, stack, transform, vecotrs, voting-only-node, and watcher. A few of the more specialized qa projects within these plugins have not been changed with this PR due to additional complexity which should be addressed separately. related: #60630 related: #56841 related: #59939 related: #55896
29 lines
911 B
Groovy
29 lines
911 B
Groovy
apply plugin: 'elasticsearch.yaml-rest-test'
|
|
|
|
dependencies {
|
|
yamlRestTestImplementation project(path: xpackModule('core'), configuration: 'testArtifacts')
|
|
}
|
|
|
|
restResources {
|
|
restApi {
|
|
includeCore '_common', 'cluster', 'indices', 'index', 'snapshot'
|
|
includeXpack 'ilm', 'slm', 'stack', 'indices'
|
|
}
|
|
}
|
|
|
|
def clusterCredentials = [username: System.getProperty('tests.rest.cluster.username', 'test_admin'),
|
|
password: System.getProperty('tests.rest.cluster.password', 'x-pack-test-password')]
|
|
|
|
yamlRestTest {
|
|
systemProperty 'tests.rest.cluster.username', clusterCredentials.username
|
|
systemProperty 'tests.rest.cluster.password', clusterCredentials.password
|
|
}
|
|
|
|
testClusters.all {
|
|
testDistribution = 'DEFAULT'
|
|
setting 'xpack.ml.enabled', 'false'
|
|
setting 'xpack.security.enabled', 'true'
|
|
setting 'xpack.license.self_generated.type', 'trial'
|
|
user clusterCredentials
|
|
}
|