diff --git a/buildSrc/src/main/groovy/org/elasticsearch/hadoop/gradle/fixture/ElasticsearchFixturePlugin.groovy b/buildSrc/src/main/groovy/org/elasticsearch/hadoop/gradle/fixture/ElasticsearchFixturePlugin.groovy index c7bacc2a7..5e918658c 100644 --- a/buildSrc/src/main/groovy/org/elasticsearch/hadoop/gradle/fixture/ElasticsearchFixturePlugin.groovy +++ b/buildSrc/src/main/groovy/org/elasticsearch/hadoop/gradle/fixture/ElasticsearchFixturePlugin.groovy @@ -100,6 +100,10 @@ class ElasticsearchFixturePlugin implements Plugin { integTestCluster.setting("http.host", "localhost") // TODO: Remove this when this is the default in 7 integTestCluster.systemProperty('es.http.cname_in_publish_address', 'true') + // Minimal Security + integTestCluster.setting('xpack.security.enabled', 'true') + integTestCluster.keystore('bootstrap.password', 'password') + integTestCluster.user(username: 'elastic-admin', password: 'elastic-password', role: 'superuser') } // Also write a script to a file for use in tests diff --git a/test/shared/src/main/resources/test.properties b/test/shared/src/main/resources/test.properties index e2a467d38..b9d48c9ff 100644 --- a/test/shared/src/main/resources/test.properties +++ b/test/shared/src/main/resources/test.properties @@ -11,6 +11,10 @@ es.batch.size.bytes=1kb #es.nodes.client.only=true #es.nodes.wan.only=true +# Minimal Security +es.net.http.auth.user=elastic-admin +es.net.http.auth.pass=elastic-password + # put pressure on the bulk API es.batch.size.entries=3 es.batch.write.retry.wait=1s