apply plugin: 'elasticsearch.yaml-rest-test' dependencies { yamlRestTestImplementation project(path: xpackModule('core'), configuration: 'testArtifacts') } restResources { restApi { includeCore '_common', 'cluster', 'indices', 'index', 'snapshot' includeXpack 'ilm', 'slm' } } def clusterCredentials = [username: System.getProperty('tests.rest.cluster.username', 'test_admin'), password: System.getProperty('tests.rest.cluster.password', 'x-pack-test-password')] yamlRestTest { systemProperty 'tests.rest.cluster.username', clusterCredentials.username systemProperty 'tests.rest.cluster.password', clusterCredentials.password } testClusters.all { testDistribution = 'DEFAULT' setting 'xpack.ml.enabled', 'false' setting 'xpack.security.enabled', 'true' setting 'xpack.license.self_generated.type', 'trial' user clusterCredentials }