From 68143dedf21279227e87d321cbf3ebf42126a72f Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Tue, 14 Jul 2015 23:37:04 -0400 Subject: [PATCH] Refactor integration tests 1. tests don't have a bogus test dependency on zips anymore, instead we handle this in pre-integration-test. This reduces lots of confusion for e.g. mvn clean test. 2. refactor integ logic so that core/ and plugin/ share it. previously they were duplicates but the above change simplifies life. it also makes it easier for doing more interesting stuff --- .../main/resources/ant/integration-tests.xml | 144 +++++++++--------- plugins/pom.xml | 6 - pom.xml | 27 +++- 3 files changed, 94 insertions(+), 83 deletions(-) diff --git a/dev-tools/src/main/resources/ant/integration-tests.xml b/dev-tools/src/main/resources/ant/integration-tests.xml index 7835bd9629d..4a97c8786fd 100644 --- a/dev-tools/src/main/resources/ant/integration-tests.xml +++ b/dev-tools/src/main/resources/ant/integration-tests.xml @@ -16,7 +16,7 @@ + -Des.script.indexed=on -Des.pidfile=${integ.pidfile} -Des.repositories.url.allowed_urls=http://snapshot.test*"/> @@ -72,85 +72,77 @@ + + + + + + + + + + + Installing plugin @{name}... + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Starting up external cluster... + + + + + + + + + External cluster started PID ${integ.pid} + + + + + + + + + + + - - - - - - - - - - - - - - - - Starting up external cluster... - - - - - - - - External cluster started PID ${integ.pid} + + - - - - - - - - - - - - - - - - Installing plugin ${project.artifactId}... - - - - - - - - - - - - - - - - - - - - - - Starting up external cluster... - - - - - - - - External cluster started PID ${integ.pid} + + + diff --git a/pom.xml b/pom.xml index b9d808e4534..82ede885afc 100644 --- a/pom.xml +++ b/pom.xml @@ -105,6 +105,7 @@ ${skipTests} ${skipTests} ${project.build.directory}/integ-tests + ${project.build.directory}/integ-deps ${integ.scratch}/temp \bno(n|)commit\b @@ -464,6 +465,10 @@ org.apache.maven.plugins maven-compiler-plugin + + org.apache.maven.plugins + maven-dependency-plugin + org.codehaus.mojo buildnumber-maven-plugin @@ -874,10 +879,30 @@ - org.apache.maven.plugins maven-dependency-plugin 2.10 + + + integ-setup-dependencies + pre-integration-test + + copy + + + + + org.elasticsearch + elasticsearch + ${elasticsearch.version} + zip + true + + + ${integ.deps} + + +