build.gradle 917 B

123456789101112131415161718192021222324252627282930
  1. import org.elasticsearch.gradle.info.BuildParams
  2. apply plugin: 'elasticsearch.testclusters'
  3. apply plugin: 'elasticsearch.standalone-rest-test'
  4. apply plugin: 'elasticsearch.rest-test'
  5. dependencies {
  6. testImplementation project(path: xpackProject('plugin').path, configuration: 'testArtifacts')
  7. }
  8. File repoDir = file("$buildDir/testclusters/repo")
  9. integTest.runner {
  10. /* To support taking index snapshots, we have to set path.repo setting */
  11. systemProperty 'tests.path.repo', repoDir
  12. }
  13. testClusters.integTest {
  14. testDistribution = 'DEFAULT'
  15. if (BuildParams.isSnapshotBuild() == false) {
  16. systemProperty 'es.searchable_snapshots_feature_enabled', 'true'
  17. }
  18. numberOfNodes = 4
  19. setting 'path.repo', repoDir.absolutePath
  20. setting 'xpack.security.enabled', 'false'
  21. setting 'xpack.watcher.enabled', 'false'
  22. setting 'xpack.ml.enabled', 'false'
  23. setting 'xpack.license.self_generated.type', 'trial'
  24. }