Introducing new integration test profile called - live. You can invoke this profile like: mvn clean install -P live -Dkubernetes.api.endpoint=http://192.168.1.100:8080/api/v1beta1/
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/220194ef Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/220194ef Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/220194ef Branch: refs/heads/master Commit: 220194efac16193b16d7729b4a180d74caf6e4b3 Parents: af39a71 Author: Nirmal Fernando <[email protected]> Authored: Mon Nov 3 14:23:13 2014 +0100 Committer: Nirmal Fernando <[email protected]> Committed: Mon Nov 3 14:23:13 2014 +0100 ---------------------------------------------------------------------- .../pom.xml | 49 +++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/220194ef/components/org.apache.stratos.kubernetes.client/pom.xml ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.kubernetes.client/pom.xml b/components/org.apache.stratos.kubernetes.client/pom.xml index c38c854..2c96345 100644 --- a/components/org.apache.stratos.kubernetes.client/pom.xml +++ b/components/org.apache.stratos.kubernetes.client/pom.xml @@ -32,6 +32,11 @@ <name>Apache Stratos - Kubernetes API Java Client</name> <description>A Java client library written for Kubernetes API</description> <url>http://apache.org</url> + + <properties> + <kubernetes.api.endpoint>http://localhost:8080/api/v1beta1/</kubernetes.api.endpoint> + <docker.image>gurpartap/redis</docker.image> + </properties> <dependencies> <dependency> @@ -58,7 +63,11 @@ <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> </dependency> - + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <scope>test</scope> + </dependency> </dependencies> <build> @@ -77,4 +86,42 @@ </plugin> </plugins> </build> + + <profiles> + <profile> + <id>unit</id> + <activation> + <activeByDefault>true</activeByDefault> + </activation> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <groups>org.apache.stratos.kubernetes.client.UnitTests</groups> + </configuration> + </plugin> + </plugins> + </build> + </profile> + <profile> + <id>live</id> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <groups>org.apache.stratos.kubernetes.client.LiveTests</groups> + <systemPropertyVariables> + <kubernetes.api.endpoint>${kubernetes.api.endpoint}</kubernetes.api.endpoint> + <docker.image>${docker.image}</docker.image> + </systemPropertyVariables> + </configuration> + </plugin> + </plugins> + </build> + </profile> + </profiles> </project>
