apply plugin: 'elasticsearch.legacy-yaml-rest-test'

dependencies {
  yamlRestTestImplementation project(':x-pack:qa')
}

restResources {
  restApi {
    include '_common', 'index', 'put_script', 'cluster', 'indices', 'ingest', 'msearch_template', 'render_search_template', 'search', 'security'
  }
}

testClusters.configureEach {
  testDistribution = 'DEFAULT'
  setting 'xpack.watcher.enabled', 'false'
  setting 'xpack.security.enabled', 'true'
  setting 'xpack.license.self_generated.type', 'trial'
  user username: "test_admin", password: "x-pack-test-password"
}
