build.gradle 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. apply plugin: 'elasticsearch.yaml-rest-test'
  2. dependencies {
  3. yamlRestTestImplementation project(path: xpackModule('core'))
  4. yamlRestTestImplementation project(path: xpackModule('core'), configuration: 'testArtifacts')
  5. yamlRestTestImplementation project(path: xpackProject('plugin').path, configuration: 'testArtifacts')
  6. }
  7. // bring in text structure rest test suite
  8. restResources {
  9. restApi {
  10. // needed for template installation, etc.
  11. includeCore '_common', 'indices'
  12. includeXpack 'text_structure'
  13. }
  14. restTests {
  15. includeXpack 'text_structure'
  16. }
  17. }
  18. tasks.named("yamlRestTest").configure {
  19. }
  20. testClusters.all {
  21. testDistribution = 'DEFAULT'
  22. extraConfigFile 'roles.yml', file('roles.yml')
  23. user username: "x_pack_rest_user", password: "x-pack-test-password"
  24. user username: "text_structure_user", password: "x-pack-test-password", role: "minimal,monitor_text_structure"
  25. user username: "no_text_structure", password: "x-pack-test-password", role: "minimal"
  26. setting 'xpack.license.self_generated.type', 'trial'
  27. setting 'xpack.security.enabled', 'true'
  28. }