2015-09-27 05:30:38 -04:00
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ ELASTICSEARCH CONFIDENTIAL
~ __________________
~
~ [2014] Elasticsearch Incorporated. All Rights Reserved.
~
~ NOTICE: All information contained herein is, and remains
~ the property of Elasticsearch Incorporated and its suppliers,
~ if any. The intellectual and technical concepts contained
~ herein are proprietary to Elasticsearch Incorporated
~ and its suppliers and may be covered by U.S. and Foreign Patents,
~ patents in process, and are protected by trade secret or copyright law.
~ Dissemination of this information or reproduction of this material
~ is strictly forbidden unless prior written permission is obtained
~ from Elasticsearch Incorporated.
-->
<project xmlns= "http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion > 4.0.0</modelVersion>
<parent >
<groupId > org.elasticsearch.qa</groupId>
<artifactId > x-plugins-qa</artifactId>
<version > 3.0.0-SNAPSHOT</version>
</parent>
<artifactId > smoke-test-found-license-with-shield-and-watcher</artifactId>
<name > QA: Smoke Test Shield and Watcher works with Found license</name>
<description > Installs Watcher and Shield and runs Watcher's rest tests and checks if the Shield integrations work correctly when run with Found License plugin</description>
<properties >
<skip.unit.tests > true</skip.unit.tests>
<elasticsearch.integ.antfile > ${project.basedir}/integration-tests.xml</elasticsearch.integ.antfile>
<tests.rest.load_packaged > false</tests.rest.load_packaged>
2015-10-26 14:29:36 -04:00
<xplugins.list > found-license-plugin,shield,watcher,marvel-agent</xplugins.list>
2015-09-27 05:30:38 -04:00
<tests.rest.blacklist > hijack/10_basic/*,array_compare_watch/10_basic/Basic array_compare watch</tests.rest.blacklist>
</properties>
<dependencies >
<dependency >
<groupId > org.elasticsearch.plugin</groupId>
<artifactId > shield</artifactId>
<version > ${elasticsearch.version}</version>
<scope > test</scope>
</dependency>
<dependency >
<groupId > org.elasticsearch.plugin</groupId>
<artifactId > watcher</artifactId>
<version > ${project.version}</version>
<scope > test</scope>
</dependency>
<dependency >
<groupId > org.elasticsearch</groupId>
<artifactId > found-license-plugin</artifactId>
<version > ${project.version}</version>
<scope > test</scope>
</dependency>
</dependencies>
<build >
<testResources >
<!-- Watcher REST API specification and test suites -->
<testResource >
<directory > ../../watcher/src/test/resources/rest-api-spec</directory>
<filtering > true</filtering>
<targetPath > rest-api-spec</targetPath>
<includes >
<include > api/*.json</include>
<include > test/**/*.yaml</include>
</includes>
</testResource>
<!-- REST API specifications copied from main Elasticsearch specs
because they are required to execute the Watcher REST tests -->
<testResource >
<directory > ${elasticsearch.tools.directory}/rest-api-spec</directory>
<targetPath > rest-api-spec</targetPath>
<includes >
<!-- required by the test framework -->
<include > api/info.json</include>
<include > api/cluster.health.json</include>
<include > api/cluster.state.json</include>
<!-- used by Watcher REST tests -->
<include > api/index.json</include>
<include > api/get.json</include>
<include > api/delete.json</include>
<include > api/delete-by-query.json</include>
<include > api/bulk.json</include>
<include > api/update.json</include>
<include > api/search.json</include>
<include > api/indices.delete.json</include>
<include > api/indices.refresh.json</include>
</includes>
</testResource>
</testResources>
<plugins >
<plugin >
<groupId > org.apache.maven.plugins</groupId>
<artifactId > maven-dependency-plugin</artifactId>
<executions >
<execution >
<id > integ-setup-dependencies</id>
<phase > pre-integration-test</phase>
<goals >
<goal > copy</goal>
</goals>
<configuration >
<skip > ${skip.integ.tests}</skip>
<useBaseVersion > true</useBaseVersion>
<outputDirectory > ${integ.deps}/plugins</outputDirectory>
<artifactItems >
<!-- elasticsearch distribution -->
<artifactItem >
<groupId > org.elasticsearch.distribution.zip</groupId>
<artifactId > elasticsearch</artifactId>
<version > ${elasticsearch.version}</version>
<type > zip</type>
<overWrite > true</overWrite>
<outputDirectory > ${integ.deps}</outputDirectory>
</artifactItem>
<!-- commercial plugins -->
<artifactItem >
<groupId > org.elasticsearch</groupId>
<artifactId > found-license-plugin</artifactId>
<version > ${elasticsearch.version}</version>
<type > zip</type>
<overWrite > true</overWrite>
</artifactItem>
<artifactItem >
<groupId > org.elasticsearch.plugin</groupId>
<artifactId > watcher</artifactId>
<version > ${elasticsearch.version}</version>
<type > zip</type>
<overWrite > true</overWrite>
</artifactItem>
<artifactItem >
<groupId > org.elasticsearch.plugin</groupId>
<artifactId > shield</artifactId>
<version > ${elasticsearch.version}</version>
<type > zip</type>
<overWrite > true</overWrite>
</artifactItem>
2015-10-26 14:29:36 -04:00
<artifactItem >
<groupId > org.elasticsearch.plugin</groupId>
<artifactId > marvel-agent</artifactId>
<version > ${elasticsearch.version}</version>
<type > zip</type>
<overWrite > true</overWrite>
</artifactItem>
2015-09-27 05:30:38 -04:00
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<!-- integration tests -->
<plugin >
<groupId > org.apache.maven.plugins</groupId>
<artifactId > maven-antrun-plugin</artifactId>
<executions >
<!-- start up external cluster -->
<execution >
<id > integ-setup</id>
<phase > pre-integration-test</phase>
<goals >
<goal > run</goal>
</goals>
<configuration >
<target >
<ant antfile= "${elasticsearch.integ.antfile}" target= "start-external-cluster-with-found-license-and-shield" >
<property name= "tests.jvm.argline" value= "${tests.jvm.argline}" />
<property name= "plugins.dir" value= "${plugins.dir}" />
<property name= "xplugins.list" value= "${xplugins.list}" />
</ant>
</target>
<skip > ${skip.integ.tests}</skip>
</configuration>
</execution>
<!-- shut down external cluster -->
<execution >
<id > integ-teardown</id>
<phase > post-integration-test</phase>
<goals >
<goal > run</goal>
</goals>
<configuration >
<target >
<ant antfile= "${elasticsearch.integ.antfile}" target= "stop-external-cluster" />
</target>
<skip > ${skip.integ.tests}</skip>
</configuration>
</execution>
</executions>
<dependencies >
<dependency >
<groupId > ant-contrib</groupId>
<artifactId > ant-contrib</artifactId>
<version > 1.0b3</version>
<exclusions >
<exclusion >
<groupId > ant</groupId>
<artifactId > ant</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency >
<groupId > org.apache.ant</groupId>
<artifactId > ant-nodeps</artifactId>
<version > 1.8.1</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>