/*
 * 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.internal-java-rest-test'

dependencies {
  javaRestTestImplementation(testArtifact(project(xpackModule('core'))))
  //TODO: update javaRestTests to not rely on any code that it is testing
  javaRestTestImplementation project(path: xpackModule('identity-provider'))
}

tasks.named("javaRestTest").configure {
  usesDefaultDistribution("IDP features require default distribution")
  // We don't support the IDP in FIPS-140 mode, so no need to run java rest tests
  buildParams.withFipsEnabledOnly(it)
}
