apply plugin: 'elasticsearch.testclusters' apply plugin: 'elasticsearch.standalone-rest-test' apply plugin: 'elasticsearch.rest-test' dependencies { testCompile project(":x-pack:plugin:core") } // bring in graph rest test suite restResources { restApi { includeCore '_common', 'cluster', 'indices', 'index' includeXpack 'graph' } restTests { includeXpack 'graph' } } testClusters.integTest { testDistribution = 'DEFAULT' setting 'xpack.security.enabled', 'true' setting 'xpack.license.self_generated.type', 'trial' extraConfigFile 'roles.yml', file('roles.yml') user username: 'test_admin', password: 'x-pack-test-password' user username: 'graph_explorer', password: 'x-pack-test-password', role: 'graph_explorer' user username: 'no_graph_explorer', password: 'x-pack-test-password', role: 'no_graph_explorer' }