/*
 * 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", the "GNU Affero General Public License v3.0 only", and the "Server Side
 * Public License v 1"; you may not use this file except in compliance with, at
 * your election, the "Elastic License 2.0", the "GNU Affero General Public
 * License v3.0 only", or the "Server Side Public License, v 1".
 */

/*
 * Evil tests that need to do unrealistic things: test OS security
 * integration, change default filesystem impl, mess with arbitrary
 * threads, etc.
 */

apply plugin: 'elasticsearch.internal-testclusters'
apply plugin: 'elasticsearch.standalone-test'

dependencies {
  testImplementation "com.google.jimfs:jimfs:1.3.0"
  testImplementation "com.google.guava:guava:${versions.jimfs_guava}"
  testImplementation project(":test:framework")
  testImplementation project(':distribution:tools:plugin-cli')
}

// TODO: give each evil test its own fresh JVM for more isolation.
tasks.named("test").configure {
  systemProperty 'tests.security.manager', 'false'
}
