Skip to content

Commit

Permalink
HSEARCH-2144 Explicitly define the Elasticsearch version and configur…
Browse files Browse the repository at this point in the history
…ation file used for integration testing
  • Loading branch information
Sanne committed Mar 2, 2016
1 parent c97b8ff commit cea1b35
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 1 deletion.
52 changes: 52 additions & 0 deletions elasticsearch/elasticsearchconfiguration/elasticsearch.yml
@@ -0,0 +1,52 @@
# ======================== Elasticsearch Configuration =========================
#
# NOTE: Elasticsearch comes with reasonable defaults for most settings.
# This file overrides those reasonable settings for testing purposes
# and is unlikely to be suited for any other goal: do not take this as
# an example to run a production system.
#
# Please see the documentation for further information on configuration options:
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/setup-configuration.html>
#
# ---------------------------------- Cluster -----------------------------------
# Use a descriptive name for your cluster:
cluster.name: hsearch-testing
#
# ------------------------------------ Node ------------------------------------
# Use a descriptive name for the node:
node.name: node-1

#
# Lock the memory on startup; requires system permissions to be effective,
# but shouldn't be harmful when the permissions are not granted.
bootstrap.mlockall: true
#
# ---------------------------------- Network -----------------------------------
# Set the bind address to a specific IP (IPv4 or IPv6):
network.host: 127.0.0.1
http.port: 9200


# --------------------------------- Discovery ----------------------------------
# Disable discovery to speedup forming a single node cluster:
discovery.zen.ping.multicast.enabled: false
discovery.zen.minimum_master_nodes: 1
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-discovery.html>

# ---------------------------------- Gateway -----------------------------------
# For more information, see the documentation at:
# <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-gateway.html>

# ---------------------------------- Various -----------------------------------
#
# Disable starting multiple nodes on a single system:
#
node.max_local_storage_nodes: 1

# Additional customizations to run a singleton node:

node.local: true
index.number_of_shards: 1
index.number_of_replicas: 0


17 changes: 16 additions & 1 deletion elasticsearch/pom.xml
Expand Up @@ -20,6 +20,12 @@
<name>Hibernate Search Elasticsearch Backend</name>
<description>Hibernate Search backend which has indexing operations forwarded to Elasticsearch</description>

<properties>
<!-- In theory we're not coupled to a specific version of Elasticsearch; this property
controls which version is being used to run integration tests. -->
<test.elasticsearch.version>2.0.0</test.elasticsearch.version>
</properties>

<dependencies>
<dependency>
<groupId>org.hibernate</groupId>
Expand Down Expand Up @@ -337,7 +343,7 @@
<artifactItem>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>delete-by-query</artifactId>
<version>2.0.0</version>
<version>${test.elasticsearch.version}</version>
<type>zip</type>
<overWrite>true</overWrite>
<outputDirectory>${project.build.directory}/_ES_PLUGINS_/delete-by-query</outputDirectory>
Expand All @@ -355,6 +361,8 @@
<tcpPort>9300</tcpPort>
<httpPort>9200</httpPort>
<pluginsPath>${project.build.directory}/_ES_PLUGINS_</pluginsPath>
<outputDirectory>${project.build.directory}/elastisearchnode1</outputDirectory>
<configPath>${basedir}/elasticsearchconfiguration</configPath>
</configuration>
<executions>
<execution>
Expand All @@ -372,6 +380,13 @@
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch</artifactId>
<version>${test.elasticsearch.version}</version>
</dependency>
</dependencies>
</plugin>

</plugins>
Expand Down

0 comments on commit cea1b35

Please sign in to comment.