Integration tests for our ElasticSearch Output Connector


(Piergiorgio Lucidi) #1

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


(Shay Banon) #2

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


(Piergiorgio Lucidi) #3

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


(Piergiorgio Lucidi) #4

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


(David Pilato) #5

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


(David Pilato) #6

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


(Piergiorgio Lucidi) #7

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


(system) #8