blob: a557f56f4679869baedf1b1e5366b1e89b68a276 [file] [log] [blame]
ChrisC025301d2017-01-31 11:40:03 +01001<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3 <modelVersion>4.0.0</modelVersion>
4 <parent>
Rob Daugherty9de3ce02017-08-04 12:15:51 -04005 <groupId>org.openecomp.so</groupId>
ChrisC025301d2017-01-31 11:40:03 +01006 <artifactId>packages</artifactId>
ChrisC1ba1d192017-03-13 05:01:04 -07007 <version>1.1.0-SNAPSHOT</version>
ChrisC025301d2017-01-31 11:40:03 +01008 </parent>
9
Rob Daugherty9de3ce02017-08-04 12:15:51 -040010 <groupId>org.openecomp.so.packages</groupId>
ChrisC025301d2017-01-31 11:40:03 +010011 <name>Arquillian Unit Testing on MSO</name>
12 <artifactId>arquillian-unit-tests</artifactId>
13
14 <packaging>jar</packaging>
xg353y2136b612017-02-14 11:44:27 +010015
ChrisC025301d2017-01-31 11:40:03 +010016 <profiles>
17 <profile>
18 <id>default-tests</id>
19 <activation>
20 <activeByDefault>true</activeByDefault>
21 </activation>
22 <properties>
23 <it-suite-to-execute>**/IntegrationTestsSuite.java</it-suite-to-execute>
24 <container-to-start>jboss-as</container-to-start>
25 <mso.project.version>${project.version}</mso.project.version>
26 </properties>
27 </profile>
xg353y2136b612017-02-14 11:44:27 +010028
ChrisC025301d2017-01-31 11:40:03 +010029 </profiles>
xg353y2136b612017-02-14 11:44:27 +010030
31
ChrisC025301d2017-01-31 11:40:03 +010032 <dependencyManagement>
33 <dependencies>
34 <dependency>
35 <groupId>org.jboss.arquillian</groupId>
36 <artifactId>arquillian-bom</artifactId>
37 <version>1.1.11.Final</version>
38 <scope>import</scope>
39 <type>pom</type>
40 </dependency>
xg353y2136b612017-02-14 11:44:27 +010041
ChrisC025301d2017-01-31 11:40:03 +010042 <dependency>
43 <groupId>org.jboss.spec</groupId>
44 <artifactId>jboss-javaee-6.0</artifactId>
45 <version>3.0.2.Final</version>
46 <type>pom</type>
47 <scope>import</scope>
xg353y2136b612017-02-14 11:44:27 +010048
ChrisC025301d2017-01-31 11:40:03 +010049 </dependency>
xg353y2136b612017-02-14 11:44:27 +010050
ChrisC025301d2017-01-31 11:40:03 +010051 </dependencies>
xg353y2136b612017-02-14 11:44:27 +010052
53
ChrisC025301d2017-01-31 11:40:03 +010054 </dependencyManagement>
55
56
57 <dependencies>
58 <!-- For testing -->
59 <dependency>
60 <groupId>org.jboss.marshalling</groupId>
61 <artifactId>jboss-marshalling</artifactId>
62 <version>1.3.16.GA</version>
63 <scope>test</scope>
64 </dependency>
ChrisC025301d2017-01-31 11:40:03 +010065
66 <dependency>
67 <groupId>org.jboss.arquillian.junit</groupId>
68 <artifactId>arquillian-junit-container</artifactId>
69 <scope>test</scope>
70
71 </dependency>
72
73<!-- <dependency>
74 <groupId>org.jboss.as</groupId>
75 <artifactId>jboss-as-arquillian-container-remote</artifactId>
76 <version>7.2.0.Final</version>
77 <scope>test</scope>
78 </dependency>-->
xg353y2136b612017-02-14 11:44:27 +010079
ChrisC025301d2017-01-31 11:40:03 +010080 <dependency>
81 <groupId>org.wildfly.arquillian</groupId>
82 <artifactId>wildfly-arquillian-container-remote</artifactId>
83 <version>1.1.0.Final</version>
84 <scope>test</scope>
85 </dependency>
xg353y2136b612017-02-14 11:44:27 +010086
ChrisC025301d2017-01-31 11:40:03 +010087 <dependency>
88 <groupId>org.jboss.remoting</groupId>
89 <artifactId>jboss-remoting</artifactId>
90 <version>4.0.9.Final</version>
91 <scope>test</scope>
92 </dependency>
xg353y2136b612017-02-14 11:44:27 +010093
ChrisC025301d2017-01-31 11:40:03 +010094 <dependency>
95 <groupId>org.jboss.logging</groupId>
96 <artifactId>jboss-logging</artifactId>
97 <version>3.2.1.Final</version>
98 <scope>test</scope>
99 </dependency>
xg353y2136b612017-02-14 11:44:27 +0100100
ChrisC025301d2017-01-31 11:40:03 +0100101 <dependency>
102 <groupId>org.jboss.arquillian.protocol</groupId>
103 <artifactId>arquillian-protocol-servlet</artifactId>
104 <scope>test</scope>
105 </dependency>
106
107 <dependency>
108 <groupId>org.jboss.shrinkwrap.resolver</groupId>
109 <artifactId>shrinkwrap-resolver-bom</artifactId>
110 <version>2.1.0-alpha-1</version>
111 <scope>runtime</scope>
112 <type>pom</type>
113 </dependency>
xg353y2136b612017-02-14 11:44:27 +0100114
115 <!-- FOR DOCKER CONTROLLED BY ARQUILLIAN-->
ChrisC025301d2017-01-31 11:40:03 +0100116 <dependency>
117 <groupId>org.arquillian.cube</groupId>
118 <artifactId>arquillian-cube-openshift-parent</artifactId>
119 <version>1.0.0.Alpha15</version>
120 <type>pom</type>
121 <scope>test</scope>
122 </dependency>
123 <dependency>
124 <groupId>org.arquillian.cube</groupId>
125 <artifactId>arquillian-cube-docker</artifactId>
126 <version>1.0.0.Alpha15</version>
127 <scope>test</scope>
128 </dependency>
xg353y2136b612017-02-14 11:44:27 +0100129
ChrisC025301d2017-01-31 11:40:03 +0100130 <!-- <dependency>
131 <groupId>org.eu.ingwar.tools</groupId>
132 <artifactId>arquillian-suite-extension</artifactId>
133 <version>1.1.1</version>
134 <scope>test</scope>
135 </dependency> -->
xg353y2136b612017-02-14 11:44:27 +0100136
ChrisC025301d2017-01-31 11:40:03 +0100137
138 <!-- For testing -->
139
140 <!-- FOR JBOSS CODE -->
141 <dependency>
142 <groupId>org.hibernate</groupId>
143 <artifactId>hibernate-core</artifactId>
144 <version>4.2.7.SP1</version>
145 <scope>test</scope>
146 </dependency>
147 <dependency>
148 <groupId>org.hibernate</groupId>
149 <artifactId>hibernate-entitymanager</artifactId>
150 <version>4.2.7.SP1</version>
151 <scope>test</scope>
152 </dependency>
153 <dependency>
154 <groupId>org.codehaus.jackson</groupId>
155 <artifactId>jackson-mapper-asl</artifactId>
156 <version>1.9.9</version>
157 <scope>test</scope>
158 </dependency>
159 <dependency>
160 <groupId>javax.validation</groupId>
161 <artifactId>validation-api</artifactId>
162 <version>1.0.0.GA</version>
163 <scope>test</scope>
164 </dependency>
165 <dependency>
166 <groupId>org.jboss.as</groupId>
167 <artifactId>jboss-as-ejb3</artifactId>
168 <version>7.2.0.Final</version>
169 <scope>test</scope>
170 </dependency>
171
172
173 <dependency>
174 <groupId>com.smartbear.soapui</groupId>
175 <artifactId>soapui</artifactId>
176 <version>5.1.0</version>
177 <type>jar</type>
178 <scope>test</scope>
179 <exclusions>
180 <exclusion>
181 <groupId>thoughtworks</groupId>
182 <artifactId>xstream</artifactId>
183 </exclusion>
184 <exclusion>
185 <groupId>gnu.cajo</groupId>
186 <artifactId>cajo</artifactId>
187 </exclusion>
188 </exclusions>
189 </dependency>
xg353y2136b612017-02-14 11:44:27 +0100190
ChrisC025301d2017-01-31 11:40:03 +0100191 <dependency>
192 <groupId>commons-codec</groupId>
193 <artifactId>commons-codec</artifactId>
194 <version>1.4</version>
195 <type>jar</type>
196 <scope>test</scope>
197 </dependency>
xg353y2136b612017-02-14 11:44:27 +0100198
ChrisC025301d2017-01-31 11:40:03 +0100199 <dependency>
200 <groupId>org.seleniumhq.selenium</groupId>
201 <artifactId>selenium-java</artifactId>
xg353y2136b612017-02-14 11:44:27 +0100202 <version>2.45.0</version>
203 <scope>test</scope>
204 </dependency>
ChrisC025301d2017-01-31 11:40:03 +0100205 <dependency>
206 <groupId>org.seleniumhq.selenium</groupId>
207 <artifactId>selenium-firefox-driver</artifactId>
208 <version>2.45.0</version>
209 <scope>test</scope>
xg353y2136b612017-02-14 11:44:27 +0100210 </dependency>
ChrisC025301d2017-01-31 11:40:03 +0100211 <dependency>
212 <groupId>org.seleniumhq.selenium</groupId>
213 <artifactId>selenium-server</artifactId>
xg353y2136b612017-02-14 11:44:27 +0100214 <version>2.45.0</version>
215 <scope>test</scope>
ChrisC025301d2017-01-31 11:40:03 +0100216 </dependency>
xg353y2136b612017-02-14 11:44:27 +0100217
ChrisC025301d2017-01-31 11:40:03 +0100218 <dependency>
219 <groupId>org.apache.httpcomponents</groupId>
220 <artifactId>httpclient</artifactId>
221 </dependency>
222 <dependency>
223 <groupId>org.apache.httpcomponents</groupId>
224 <artifactId>httpcore</artifactId>
225 </dependency>
xg353y2136b612017-02-14 11:44:27 +0100226
ChrisC025301d2017-01-31 11:40:03 +0100227 <dependency>
Rob Daugherty9de3ce02017-08-04 12:15:51 -0400228 <groupId>org.openecomp.so</groupId>
ChrisC025301d2017-01-31 11:40:03 +0100229 <artifactId>asdc-controller</artifactId>
230 <version>${project.version}</version>
231 <scope>test</scope>
232 <classifier>classes</classifier>
233 </dependency>
xg353y2136b612017-02-14 11:44:27 +0100234
ChrisC025301d2017-01-31 11:40:03 +0100235 <!-- <dependency>
Rob Daugherty9de3ce02017-08-04 12:15:51 -0400236 <groupId>org.openecomp.so.adapters</groupId>
ChrisC025301d2017-01-31 11:40:03 +0100237 <artifactId>mso-appc-adapter</artifactId>
238 <version>${project.version}</version>
239 <scope>test</scope>
240 <classifier>classes</classifier>
241 </dependency> -->
xg353y2136b612017-02-14 11:44:27 +0100242
ChrisC025301d2017-01-31 11:40:03 +0100243 <dependency>
244 <groupId>org.mockito</groupId>
245 <artifactId>mockito-all</artifactId>
246 <version>1.10.19</version>
247 <scope>test</scope>
248 </dependency>
xg353y2136b612017-02-14 11:44:27 +0100249
ChrisC025301d2017-01-31 11:40:03 +0100250 <dependency>
xg353yb6b7bef2017-04-11 13:30:42 +0200251 <groupId>org.openecomp.sdc.sdc-distribution-client</groupId>
ChrisC025301d2017-01-31 11:40:03 +0100252 <artifactId>sdc-distribution-client</artifactId>
xg353yb6b7bef2017-04-11 13:30:42 +0200253 <version>1.1.6-SNAPSHOT</version>
ChrisC025301d2017-01-31 11:40:03 +0100254 <scope>test</scope>
255 </dependency>
xg353y2136b612017-02-14 11:44:27 +0100256
ChrisC025301d2017-01-31 11:40:03 +0100257 <dependency>
Rob Daugherty9de3ce02017-08-04 12:15:51 -0400258 <groupId>org.openecomp.so</groupId>
ChrisC025301d2017-01-31 11:40:03 +0100259 <artifactId>mso-catalog-db</artifactId>
260 <version>${project.version}</version>
261 <scope>test</scope>
262 </dependency>
263 <!-- FOR JMETER -->
264 <dependency>
265 <groupId>org.apache.jmeter</groupId>
266 <artifactId>ApacheJMeter_core</artifactId>
267 <version>2.13</version>
xg353y2136b612017-02-14 11:44:27 +0100268
ChrisC025301d2017-01-31 11:40:03 +0100269 <scope>test</scope>
270 <exclusions>
271 <exclusion>
272 <artifactId>commons-math3</artifactId>
273 <groupId>commons-math3</groupId>
274 </exclusion>
275 <exclusion>
276 <artifactId>commons-pool2</artifactId>
277 <groupId>commons-pool2</groupId>
278 </exclusion>
279 </exclusions>
280 </dependency>
xg353y2136b612017-02-14 11:44:27 +0100281
ChrisC025301d2017-01-31 11:40:03 +0100282 <dependency>
283 <groupId>org.apache.jmeter</groupId>
284 <artifactId>ApacheJMeter_http</artifactId>
285 <version>2.13</version>
xg353y2136b612017-02-14 11:44:27 +0100286
ChrisC025301d2017-01-31 11:40:03 +0100287 <scope>test</scope>
288 <exclusions>
289 <exclusion>
290 <artifactId>commons-math3</artifactId>
291 <groupId>commons-math3</groupId>
292 </exclusion>
293 <exclusion>
294 <artifactId>commons-pool2</artifactId>
295 <groupId>commons-pool2</groupId>
296 </exclusion>
297 </exclusions>
298 </dependency>
xg353y2136b612017-02-14 11:44:27 +0100299
ChrisC025301d2017-01-31 11:40:03 +0100300 <dependency>
301 <groupId>org.apache.jmeter</groupId>
302 <artifactId>ApacheJMeter_jdbc</artifactId>
303 <version>2.13</version>
xg353y2136b612017-02-14 11:44:27 +0100304
ChrisC025301d2017-01-31 11:40:03 +0100305 <scope>test</scope>
306 <exclusions>
307 <exclusion>
308 <artifactId>commons-math3</artifactId>
309 <groupId>commons-math3</groupId>
310 </exclusion>
311 <exclusion>
312 <artifactId>commons-pool2</artifactId>
313 <groupId>commons-pool2</groupId>
314 </exclusion>
315 </exclusions>
316 </dependency>
xg353y2136b612017-02-14 11:44:27 +0100317
ChrisC025301d2017-01-31 11:40:03 +0100318 <!-- END FOR JMETER -->
319 </dependencies>
320
321 <build>
322 <finalName>arquillian-tests</finalName>
323 <plugins>
324 <plugin>
325 <groupId>org.codehaus.groovy.maven</groupId>
326 <artifactId>gmaven-plugin</artifactId>
327 <executions>
328 <execution>
329 <phase>generate-resources</phase>
330 <goals>
331 <goal>execute</goal>
332 </goals>
333 <configuration>
334 <source>
335 if ( project.properties['docker.host'] != null ) {
336 project.properties['docker.host.truncated']=project.properties['docker.host'].replaceFirst("^(http://|https://)","");
337 int indexPort = project.properties['docker.host.truncated'].indexOf(":");
338 project.properties['docker.host.truncated']=project.properties['docker.host.truncated'].substring(0,indexPort);
339 println 'docker.host.truncated:'+ project.properties['docker.host.truncated'];
340 } else {
341 project.properties['docker.host.truncated']="127.0.0.1";
342 project.properties['docker.host']="unix:///var/run/docker.sock"
343 }
xg353y2136b612017-02-14 11:44:27 +0100344
ChrisC025301d2017-01-31 11:40:03 +0100345 if ( project.properties['mso.project.version'].endsWith("-SNAPSHOT") ) {
346 project.properties['mso.version']="latest";
347 } else {
348 project.properties['mso.version']=project.properties['mso.project.version'];
xg353y2136b612017-02-14 11:44:27 +0100349 }
ChrisC025301d2017-01-31 11:40:03 +0100350 </source>
351 </configuration>
352 </execution>
353 </executions>
354 </plugin>
355
xg353yb6b7bef2017-04-11 13:30:42 +0200356
357 <plugin>
358 <groupId>org.codehaus.mojo</groupId>
359 <artifactId>wagon-maven-plugin</artifactId>
360 <version>1.0</version>
361 <executions>
362 <execution>
363 <id>download-mariadb-connector</id>
364 <phase>pre-integration-test</phase>
365 <goals>
366 <goal>download-single</goal>
367 </goals>
368 <configuration>
369 <url>http://central.maven.org/</url>
370 <fromFile>maven2/org/mariadb/jdbc/mariadb-java-client/1.5.4/mariadb-java-client-1.5.4.jar</fromFile>
371 <toDir>${project.build.directory}/mariadb-connector</toDir>
372 </configuration>
373 </execution>
374 </executions>
375 </plugin>
ChrisC025301d2017-01-31 11:40:03 +0100376 <plugin>
377 <groupId>org.apache.maven.plugins</groupId>
378 <artifactId>maven-failsafe-plugin</artifactId>
379 <version>2.16</version>
380
381 <executions>
382 <execution>
383 <goals>
384 <goal>integration-test</goal>
385 <goal>verify</goal>
386 </goals>
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -0700387 <configuration>
388 <skipAfterFailureCount>1</skipAfterFailureCount>
389 </configuration>
ChrisC025301d2017-01-31 11:40:03 +0100390 </execution>
391 </executions>
xg353y2136b612017-02-14 11:44:27 +0100392
ChrisC025301d2017-01-31 11:40:03 +0100393 <configuration>
xg353y2136b612017-02-14 11:44:27 +0100394 <systemPropertyVariables>
ChrisC025301d2017-01-31 11:40:03 +0100395 <arquillian.launch>${container-to-start}</arquillian.launch>
396 <target.folder>${project.build.directory}</target.folder>
397 <docker.url>${docker.host}</docker.url>
398 <docker.hostname>${docker.host.truncated}</docker.hostname>
399 <images.version>${mso.version}</images.version>
400 </systemPropertyVariables>
401 <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
402 <testFailureIgnore>true</testFailureIgnore>
403 <includes>
404 <include>${it-suite-to-execute}</include>
405 </includes>
406 </configuration>
407 </plugin>
408
409 <plugin>
410 <groupId>org.apache.maven.plugins</groupId>
411 <artifactId>maven-surefire-plugin</artifactId>
412
413 <configuration>
414 <skipTests>true</skipTests>
415 </configuration>
416 </plugin>
417 </plugins>
418 </build>
419
420</project>