/*
 * 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; you may not use this file except in compliance with the Elastic License
 * 2.0.
 */

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

dependencies {
  javaRestTestImplementation project(path: xpackModule('core'))
  javaRestTestImplementation project(path: xpackModule('enrich:qa:common'))
}

testClusters.configureEach {
  testDistribution = 'DEFAULT'
  extraConfigFile 'roles.yml', file('roles.yml')
  user username: "test_admin", password: "x-pack-test-password", role: "superuser"
  user username: "test_enrich", password: "x-pack-test-password", role: "integ_test_role"
  setting 'xpack.license.self_generated.type', 'trial'
  setting 'xpack.security.enabled', 'true'
  setting 'xpack.monitoring.collection.enabled', 'true'
}
