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

dependencies {
  javaRestTestImplementation project(':x-pack:plugin:core')
  javaRestTestImplementation(testArtifact(project(xpackModule('core'))))
  javaRestTestImplementation(testArtifact(project(xpackModule('security'))))
  javaRestTestImplementation project(':test:fixtures:krb5kdc-fixture')
}

tasks.named("javaRestTest").configure {
  usesDefaultDistribution("to be triaged")
  description = "Runs rest tests against an elasticsearch cluster with Kerberos."
  // required for krb5kdc-fixture to work
  jvmArgs '--add-exports', 'java.security.jgss/sun.security.krb5=ALL-UNNAMED'
}
