# Integration tests for our ElasticSearch Output Connector

**URL:** <https://discuss.elastic.co/t/integration-tests-for-our-elasticsearch-output-connector/6680>\
**Category:** Elasticsearch\
**Created:** [February 12, 2012, 1:24pm UTC](https://discuss.elastic.co/t/integration-tests-for-our-elasticsearch-output-connector/6680 "2012-02-12T13:24:08Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Piergiorgio\_Lucidi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/piergiorgio_lucidi/32/2902_2.png) [@Piergiorgio\_Lucidi](https://discuss.elastic.co/u/Piergiorgio_Lucidi)\
**Post date:** [February 12, 2012, 1:24pm UTC](https://discuss.elastic.co/t/integration-tests-for-our-elasticsearch-output-connector/6680/1 "2012-02-12T13:24:08Z")

</div>

Hi guys,

we are implementing a new ElasticSearch Output Connector for Apache  
ManifoldCF and now we have to start implementing the integration tests  
module.

Could you please suggest me what is the best way to automatically  
download and start an instance of ElasticSearch that could be nested  
in an integration test section?

We are using Maven and Ant as the main ways to build and start  
integration tests, we would like to add both for this module too.

Thank you very much for any hints.  
Piergiorgio

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [February 12, 2012, 4:50pm UTC](https://discuss.elastic.co/t/integration-tests-for-our-elasticsearch-output-connector/6680/2 "2012-02-12T16:50:51Z")

</div>

Add elasticsearch as a maven dependency (and lucene as well), then, you can start an embedded node and do the tests against it (see more here: [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/java-api/).

On Sunday, February 12, 2012 at 3:24 PM, Piergiorgio Lucidi wrote:

> Hi guys,
> 
> we are implementing a new Elasticsearch Output Connector for Apache  
> ManifoldCF and now we have to start implementing the integration tests  
> module.
> 
> Could you please suggest me what is the best way to automatically  
> download and start an instance of Elasticsearch that could be nested  
> in an integration test section?
> 
> We are using Maven and Ant as the main ways to build and start  
> integration tests, we would like to add both for this module too.
> 
> Thank you very much for any hints.  
> Piergiorgio

---

<div class="post-metadata">

**Author:** ![Piergiorgio\_Lucidi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/piergiorgio_lucidi/32/2902_2.png) [@Piergiorgio\_Lucidi](https://discuss.elastic.co/u/Piergiorgio_Lucidi)\
**Post date:** [February 14, 2012, 7:50am UTC](https://discuss.elastic.co/t/integration-tests-for-our-elasticsearch-output-connector/6680/3 "2012-02-14T07:50:23Z")

</div>

Hi Shay,

thank you for your message, we will try to follow this way.

Piergiorgio

On Feb 12, 5:50 pm, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:

> Add elasticsearch as a maven dependency (and lucene as well), then, you can start an embedded node and do the tests against it (see more here:[Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/java-api/).
> 
> On Sunday, February 12, 2012 at 3:24 PM, Piergiorgio Lucidi wrote:
> 
> > Hi guys,
> 
> > we are implementing a new Elasticsearch Output Connector for Apache  
> > ManifoldCF and now we have to start implementing the integration tests  
> > module.
> 
> > Could you please suggest me what is the best way to automatically  
> > download and start an instance of Elasticsearch that could be nested  
> > in an integration test section?
> 
> > We are using Maven and Ant as the main ways to build and start  
> > integration tests, we would like to add both for this module too.
> 
> > Thank you very much for any hints.  
> > Piergiorgio

---

<div class="post-metadata">

**Author:** ![Piergiorgio\_Lucidi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/piergiorgio_lucidi/32/2902_2.png) [@Piergiorgio\_Lucidi](https://discuss.elastic.co/u/Piergiorgio_Lucidi)\
**Post date:** [March 16, 2012, 1:39pm UTC](https://discuss.elastic.co/t/integration-tests-for-our-elasticsearch-output-connector/6680/4 "2012-03-16T13:39:31Z")

</div>

Hi guys,

we have implemented the connector with integration tests using the Java API.

But on a second iteration we added support for the attachment plugin.

Now for our integration tests we need to start an ES instance that could  
start with the attachment plugin embedded using the same Java API.  
Is it possible?

Thank you for your support.  
Piergiorgio

Il giorno martedì 14 febbraio 2012 08:50:23 UTC+1, Piergiorgio Lucidi ha  
scritto:

> Hi Shay,
> 
> thank you for your message, we will try to follow this way.
> 
> Piergiorgio
> 
> On Feb 12, 5:50 pm, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:
> 
> > Add elasticsearch as a maven dependency (and lucene as well), then, you  
> > can start an embedded node and do the tests against it (see more here:  
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/java-api/).
> > 
> > On Sunday, February 12, 2012 at 3:24 PM, Piergiorgio Lucidi wrote:
> > 
> > > Hi guys,
> > 
> > > we are implementing a new Elasticsearch Output Connector for Apache  
> > > ManifoldCF and now we have to start implementing the integration tests  
> > > module.
> > 
> > > Could you please suggest me what is the best way to automatically  
> > > download and start an instance of Elasticsearch that could be nested  
> > > in an integration test section?
> > 
> > > We are using Maven and Ant as the main ways to build and start  
> > > integration tests, we would like to add both for this module too.
> > 
> > > Thank you very much for any hints.  
> > > Piergiorgio

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 16, 2012, 1:49pm UTC](https://discuss.elastic.co/t/integration-tests-for-our-elasticsearch-output-connector/6680/5 "2012-03-16T13:49:28Z")

</div>

Yes. Just add the attachment plugin in your classpath.

David 😉  
@dadoonet

Le 16 mars 2012 à 14:39, Piergiorgio Lucidi [piergiorgiolucidi@gmail.com](mailto:piergiorgiolucidi@gmail.com) a écrit :

> Hi guys,
> 
> we have implemented the connector with integration tests using the Java API.
> 
> But on a second iteration we added support for the attachment plugin.
> 
> Now for our integration tests we need to start an ES instance that could start with the attachment plugin embedded using the same Java API.  
> Is it possible?
> 
> Thank you for your support.  
> Piergiorgio
> 
> Il giorno martedì 14 febbraio 2012 08:50:23 UTC+1, Piergiorgio Lucidi ha scritto:  
> Hi Shay,
> 
> thank you for your message, we will try to follow this way.
> 
> Piergiorgio
> 
> On Feb 12, 5:50 pm, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:
> 
> > Add elasticsearch as a maven dependency (and lucene as well), then, you can start an embedded node and do the tests against it (see more here:[Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/java-api/).
> > 
> > On Sunday, February 12, 2012 at 3:24 PM, Piergiorgio Lucidi wrote:
> > 
> > > Hi guys,
> > 
> > > we are implementing a new Elasticsearch Output Connector for Apache  
> > > ManifoldCF and now we have to start implementing the integration tests  
> > > module.
> > 
> > > Could you please suggest me what is the best way to automatically  
> > > download and start an instance of Elasticsearch that could be nested  
> > > in an integration test section?
> > 
> > > We are using Maven and Ant as the main ways to build and start  
> > > integration tests, we would like to add both for this module too.
> > 
> > > Thank you very much for any hints.  
> > > Piergiorgio

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 16, 2012, 1:51pm UTC](https://discuss.elastic.co/t/integration-tests-for-our-elasticsearch-output-connector/6680/6 "2012-03-16T13:51:41Z")

</div>

And its dependencies !

David 😉  
@dadoonet

Le 16 mars 2012 à 14:49, David Pilato [david@pilato.fr](mailto:david@pilato.fr) a écrit :

> Yes. Just add the attachment plugin in your classpath.
> 
> David 😉  
> @dadoonet
> 
> Le 16 mars 2012 à 14:39, Piergiorgio Lucidi [piergiorgiolucidi@gmail.com](mailto:piergiorgiolucidi@gmail.com) a écrit :
> 
> > Hi guys,
> > 
> > we have implemented the connector with integration tests using the Java API.
> > 
> > But on a second iteration we added support for the attachment plugin.
> > 
> > Now for our integration tests we need to start an ES instance that could start with the attachment plugin embedded using the same Java API.  
> > Is it possible?
> > 
> > Thank you for your support.  
> > Piergiorgio
> > 
> > Il giorno martedì 14 febbraio 2012 08:50:23 UTC+1, Piergiorgio Lucidi ha scritto:  
> > Hi Shay,
> > 
> > thank you for your message, we will try to follow this way.
> > 
> > Piergiorgio
> > 
> > On Feb 12, 5:50 pm, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:
> > 
> > > Add elasticsearch as a maven dependency (and lucene as well), then, you can start an embedded node and do the tests against it (see more here:[Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/java-api/).
> > > 
> > > On Sunday, February 12, 2012 at 3:24 PM, Piergiorgio Lucidi wrote:
> > > 
> > > > Hi guys,
> > > 
> > > > we are implementing a new Elasticsearch Output Connector for Apache  
> > > > ManifoldCF and now we have to start implementing the integration tests  
> > > > module.
> > > 
> > > > Could you please suggest me what is the best way to automatically  
> > > > download and start an instance of Elasticsearch that could be nested  
> > > > in an integration test section?
> > > 
> > > > We are using Maven and Ant as the main ways to build and start  
> > > > integration tests, we would like to add both for this module too.
> > > 
> > > > Thank you very much for any hints.  
> > > > Piergiorgio

---

<div class="post-metadata">

**Author:** ![Piergiorgio\_Lucidi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/piergiorgio_lucidi/32/2902_2.png) [@Piergiorgio\_Lucidi](https://discuss.elastic.co/u/Piergiorgio_Lucidi)\
**Post date:** [March 16, 2012, 7:12pm UTC](https://discuss.elastic.co/t/integration-tests-for-our-elasticsearch-output-connector/6680/7 "2012-03-16T19:12:30Z")

</div>

Great! Thank you I solved!

Very simple using Maven: you only need to add the attachment plugin  
dependency!!!!

^\_\_\_^

```
<dependency>

  <groupId>org.elasticsearch</groupId>

  <artifactId>elasticsearch-mapper-attachments</artifactId>

  <version>1.2.0</version>

</dependency>

```

Il giorno venerdì 16 marzo 2012 14:51:41 UTC+1, David Pilato ha scritto:

> And its dependencies !
> 
> David 😉  
> @dadoonet
> 
> Le 16 mars 2012 à 14:49, David Pilato [david@pilato.fr](mailto:david@pilato.fr) a écrit :
> 
> Yes. Just add the attachment plugin in your classpath.
> 
> David 😉  
> @dadoonet
> 
> Le 16 mars 2012 à 14:39, Piergiorgio Lucidi [piergiorgiolucidi@gmail.com](mailto:piergiorgiolucidi@gmail.com)  
> a écrit :
> 
> Hi guys,
> 
> we have implemented the connector with integration tests using the Java  
> API.
> 
> But on a second iteration we added support for the attachment plugin.
> 
> Now for our integration tests we need to start an ES instance that could  
> start with the attachment plugin embedded using the same Java API.  
> Is it possible?
> 
> Thank you for your support.  
> Piergiorgio
> 
> Il giorno martedì 14 febbraio 2012 08:50:23 UTC+1, Piergiorgio Lucidi ha  
> scritto:
> 
> > Hi Shay,
> > 
> > thank you for your message, we will try to follow this way.
> > 
> > Piergiorgio
> > 
> > On Feb 12, 5:50 pm, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:
> > 
> > > Add elasticsearch as a maven dependency (and lucene as well), then, you  
> > > can start an embedded node and do the tests against it (see more here:  
> > > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/java-api/).
> > > 
> > > On Sunday, February 12, 2012 at 3:24 PM, Piergiorgio Lucidi wrote:
> > > 
> > > > Hi guys,
> > > 
> > > > we are implementing a new Elasticsearch Output Connector for Apache  
> > > > ManifoldCF and now we have to start implementing the integration  
> > > > tests  
> > > > module.
> > > 
> > > > Could you please suggest me what is the best way to automatically  
> > > > download and start an instance of Elasticsearch that could be nested  
> > > > in an integration test section?
> > > 
> > > > We are using Maven and Ant as the main ways to build and start  
> > > > integration tests, we would like to add both for this module too.
> > > 
> > > > Thank you very much for any hints.  
> > > > Piergiorgio

Il giorno venerdì 16 marzo 2012 14:51:41 UTC+1, David Pilato ha scritto:

> And its dependencies !
> 
> David 😉  
> @dadoonet
> 
> Le 16 mars 2012 à 14:49, David Pilato [david@pilato.fr](mailto:david@pilato.fr) a écrit :
> 
> Yes. Just add the attachment plugin in your classpath.
> 
> David 😉  
> @dadoonet
> 
> Le 16 mars 2012 à 14:39, Piergiorgio Lucidi [piergiorgiolucidi@gmail.com](mailto:piergiorgiolucidi@gmail.com)  
> a écrit :
> 
> Hi guys,
> 
> we have implemented the connector with integration tests using the Java  
> API.
> 
> But on a second iteration we added support for the attachment plugin.
> 
> Now for our integration tests we need to start an ES instance that could  
> start with the attachment plugin embedded using the same Java API.  
> Is it possible?
> 
> Thank you for your support.  
> Piergiorgio
> 
> Il giorno martedì 14 febbraio 2012 08:50:23 UTC+1, Piergiorgio Lucidi ha  
> scritto:
> 
> > Hi Shay,
> > 
> > thank you for your message, we will try to follow this way.
> > 
> > Piergiorgio
> > 
> > On Feb 12, 5:50 pm, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:
> > 
> > > Add elasticsearch as a maven dependency (and lucene as well), then, you  
> > > can start an embedded node and do the tests against it (see more here:  
> > > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/java-api/).
> > > 
> > > On Sunday, February 12, 2012 at 3:24 PM, Piergiorgio Lucidi wrote:
> > > 
> > > > Hi guys,
> > > 
> > > > we are implementing a new Elasticsearch Output Connector for Apache  
> > > > ManifoldCF and now we have to start implementing the integration  
> > > > tests  
> > > > module.
> > > 
> > > > Could you please suggest me what is the best way to automatically  
> > > > download and start an instance of Elasticsearch that could be nested  
> > > > in an integration test section?
> > > 
> > > > We are using Maven and Ant as the main ways to build and start  
> > > > integration tests, we would like to add both for this module too.
> > > 
> > > > Thank you very much for any hints.  
> > > > Piergiorgio

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:35am UTC](https://discuss.elastic.co/t/integration-tests-for-our-elasticsearch-output-connector/6680/8 "2017-07-06T03:35:51Z")

</div>


