Integration tests for our ElasticSearch Output Connector

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

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.

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

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 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.

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

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 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.

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

Yes. Just add the attachment plugin in your classpath.

David :wink:
@dadoonet

Le 16 mars 2012 à 14:39, Piergiorgio Lucidi 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 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.

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

And its dependencies !

David :wink:
@dadoonet

Le 16 mars 2012 à 14:49, David Pilato david@pilato.fr a écrit :

Yes. Just add the attachment plugin in your classpath.

David :wink:
@dadoonet

Le 16 mars 2012 à 14:39, Piergiorgio Lucidi 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 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.

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

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 :wink:
@dadoonet

Le 16 mars 2012 à 14:49, David Pilato david@pilato.fr a écrit :

Yes. Just add the attachment plugin in your classpath.

David :wink:
@dadoonet

Le 16 mars 2012 à 14:39, Piergiorgio Lucidi 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 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.

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 :wink:
@dadoonet

Le 16 mars 2012 à 14:49, David Pilato david@pilato.fr a écrit :

Yes. Just add the attachment plugin in your classpath.

David :wink:
@dadoonet

Le 16 mars 2012 à 14:39, Piergiorgio Lucidi 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 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.

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