# Integration test for ingest-attachment plugin

**URL:** <https://discuss.elastic.co/t/integration-test-for-ingest-attachment-plugin/72510>\
**Category:** Elasticsearch\
**Created:** [January 23, 2017, 4:31pm UTC](https://discuss.elastic.co/t/integration-test-for-ingest-attachment-plugin/72510 "2017-01-23T16:31:11Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [January 23, 2017, 5:09pm UTC](https://discuss.elastic.co/t/integration-test-for-ingest-attachment-plugin/72510/2 "2017-01-23T17:09:44Z")

</div>

You need to create a real integration test server.

I wrote something about this here: [http://david.pilato.fr/blog/2016/10/18/elasticsearch-real-integration-tests-updated-for-ga/](http://david.pilato.fr/blog/2016/10/18/elasticsearch-real-integration-tests-updated-for-ga/)

A bit complicated but at least really realistic.

May be download the artifact with [http://www.mojohaus.org/wagon-maven-plugin/](http://www.mojohaus.org/wagon-maven-plugin/) like:

```auto
<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>wagon-maven-plugin</artifactId>
    <version>1.0</version>
    <executions>
        <execution>
            <id>download-ingest-attachment</id>
            <phase>pre-integration-test</phase>
            <goals>
                <goal>download-single</goal>
            </goals>
            <configuration>
                <url>https://artifacts.elastic.co</url>
                <fromFile>downloads/elasticsearch-plugins/ingest-attachment/ingest-attachment-5.1.2.zip</fromFile>
                <toDir>${project.build.directory}/es-plugins</toDir>
            </configuration>
        </execution>
    </executions>
</plugin>

```

---

_[View the full topic](https://discuss.elastic.co/t/integration-test-for-ingest-attachment-plugin/72510)._
