blob: 4279f8f0bda9d71152d44e8bb9fa4cd11b5306df [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"
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +02002 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>
5 <groupId>org.openecomp.so</groupId>
6 <artifactId>packages</artifactId>
seshukm6c99e8d2017-11-16 15:46:26 +05307 <version>1.1.1-SNAPSHOT</version>
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +02008 </parent>
ChrisC025301d2017-01-31 11:40:03 +01009
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +020010 <groupId>org.openecomp.so.packages</groupId>
11 <name>Arquillian Unit Testing on MSO</name>
12 <artifactId>arquillian-unit-tests</artifactId>
ChrisC025301d2017-01-31 11:40:03 +010013
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +020014 <packaging>jar</packaging>
xg353y2136b612017-02-14 11:44:27 +010015
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +020016 <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
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +020029 </profiles>
xg353y2136b612017-02-14 11:44:27 +010030
31
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +020032 <dependencyManagement>
33 <dependencies>
34 <dependency>
35 <groupId>org.jboss.arquillian</groupId>
36 <artifactId>arquillian-bom</artifactId>
37 <version>1.1.13.Final</version>
38 <scope>import</scope>
39 <type>pom</type>
40 </dependency>
xg353y2136b612017-02-14 11:44:27 +010041
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +020042 <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
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +020049 </dependency>
xg353y2136b612017-02-14 11:44:27 +010050
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +020051 </dependencies>
xg353y2136b612017-02-14 11:44:27 +010052
53
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +020054 </dependencyManagement>
ChrisC025301d2017-01-31 11:40:03 +010055
56
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +020057 <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
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +020066 <dependency>
67 <groupId>org.jboss.arquillian.junit</groupId>
68 <artifactId>arquillian-junit-container</artifactId>
69 <scope>test</scope>
ChrisC025301d2017-01-31 11:40:03 +010070
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +020071 </dependency>
ChrisC025301d2017-01-31 11:40:03 +010072
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +020073 <dependency>
74 <groupId>org.wildfly.arquillian</groupId>
75 <artifactId>wildfly-arquillian-container-remote</artifactId>
76 <version>1.1.0.Final</version>
77 <scope>test</scope>
78 </dependency>
xg353y2136b612017-02-14 11:44:27 +010079
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +020080 <dependency>
81 <groupId>org.jboss.remoting</groupId>
82 <artifactId>jboss-remoting</artifactId>
83 <version>4.0.9.Final</version>
84 <scope>test</scope>
85 </dependency>
xg353y2136b612017-02-14 11:44:27 +010086
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +020087 <dependency>
88 <groupId>org.jboss.logging</groupId>
89 <artifactId>jboss-logging</artifactId>
90 <version>3.2.1.Final</version>
91 <scope>test</scope>
92 </dependency>
xg353y2136b612017-02-14 11:44:27 +010093
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +020094 <dependency>
95 <groupId>org.jboss.arquillian.protocol</groupId>
96 <artifactId>arquillian-protocol-servlet</artifactId>
97 <scope>test</scope>
98 </dependency>
xg353y2136b612017-02-14 11:44:27 +010099
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +0200100 <dependency>
101 <groupId>org.jboss.shrinkwrap.resolver</groupId>
102 <artifactId>shrinkwrap-resolver-impl-maven</artifactId>
103 <version>2.2.6</version>
104 <scope>test</scope>
105 </dependency>
ChrisC025301d2017-01-31 11:40:03 +0100106
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +0200107 <!-- FOR DOCKER CONTROLLED BY ARQUILLIAN -->
108 <dependency>
109 <groupId>org.arquillian.cube</groupId>
110 <artifactId>arquillian-cube-docker</artifactId>
111 <version>1.9.0</version>
112 <scope>test</scope>
113 </dependency>
xg353y2136b612017-02-14 11:44:27 +0100114
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +0200115 <!-- For testing -->
xg353y2136b612017-02-14 11:44:27 +0100116
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +0200117 <!-- FOR JBOSS CODE -->
118 <dependency>
119 <groupId>org.hibernate</groupId>
120 <artifactId>hibernate-core</artifactId>
121 <version>4.2.7.SP1</version>
122 <scope>test</scope>
123 </dependency>
124 <dependency>
125 <groupId>org.hibernate</groupId>
126 <artifactId>hibernate-entitymanager</artifactId>
127 <version>4.2.7.SP1</version>
128 <scope>test</scope>
129 </dependency>
130
131 <dependency>
132 <groupId>javax.validation</groupId>
133 <artifactId>validation-api</artifactId>
134 <version>1.0.0.GA</version>
135 <scope>test</scope>
136 </dependency>
137 <dependency>
138 <groupId>org.jboss.as</groupId>
139 <artifactId>jboss-as-ejb3</artifactId>
140 <version>7.2.0.Final</version>
141 <scope>test</scope>
142 </dependency>
xg353y2136b612017-02-14 11:44:27 +0100143
ChrisC025301d2017-01-31 11:40:03 +0100144
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +0200145 <dependency>
146 <groupId>com.smartbear.soapui</groupId>
147 <artifactId>soapui</artifactId>
148 <version>5.1.0</version>
149 <type>jar</type>
150 <scope>test</scope>
151 <exclusions>
152 <exclusion>
153 <groupId>thoughtworks</groupId>
154 <artifactId>xstream</artifactId>
155 </exclusion>
156 <exclusion>
157 <groupId>gnu.cajo</groupId>
158 <artifactId>cajo</artifactId>
159 </exclusion>
160 </exclusions>
161 </dependency>
ChrisC025301d2017-01-31 11:40:03 +0100162
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +0200163 <dependency>
164 <groupId>commons-codec</groupId>
165 <artifactId>commons-codec</artifactId>
166 <version>1.4</version>
167 <type>jar</type>
168 <scope>test</scope>
169 </dependency>
ChrisC025301d2017-01-31 11:40:03 +0100170
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +0200171 <dependency>
172 <groupId>org.seleniumhq.selenium</groupId>
173 <artifactId>selenium-java</artifactId>
174 <version>2.45.0</version>
175 <scope>test</scope>
176 </dependency>
177 <dependency>
178 <groupId>org.seleniumhq.selenium</groupId>
179 <artifactId>selenium-firefox-driver</artifactId>
180 <version>2.45.0</version>
181 <scope>test</scope>
182 </dependency>
183 <dependency>
184 <groupId>org.seleniumhq.selenium</groupId>
185 <artifactId>selenium-server</artifactId>
186 <version>2.45.0</version>
187 <scope>test</scope>
188 </dependency>
ChrisC025301d2017-01-31 11:40:03 +0100189
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +0200190 <dependency>
191 <groupId>org.apache.httpcomponents</groupId>
192 <artifactId>httpclient</artifactId>
193 </dependency>
194 <dependency>
195 <groupId>org.apache.httpcomponents</groupId>
196 <artifactId>httpcore</artifactId>
197 </dependency>
xg353y2136b612017-02-14 11:44:27 +0100198
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +0200199 <dependency>
200 <groupId>org.openecomp.so</groupId>
201 <artifactId>asdc-controller</artifactId>
202 <version>${project.version}</version>
203 <scope>test</scope>
204 <classifier>classes</classifier>
205 </dependency>
xg353y2136b612017-02-14 11:44:27 +0100206
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +0200207 <dependency>
208 <groupId>com.fasterxml.jackson.core</groupId>
209 <artifactId>jackson-core</artifactId>
210 <scope>test</scope>
211 <version>2.8.7</version>
212 </dependency>
xg353y2136b612017-02-14 11:44:27 +0100213
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +0200214 <dependency>
215 <groupId>org.mockito</groupId>
216 <artifactId>mockito-all</artifactId>
217 <version>1.10.19</version>
218 <scope>test</scope>
219 </dependency>
xg353y2136b612017-02-14 11:44:27 +0100220
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +0200221 <dependency>
222 <groupId>org.openecomp.sdc.sdc-distribution-client</groupId>
223 <artifactId>sdc-distribution-client</artifactId>
seshukm26aa1982017-11-03 13:13:29 +0530224 <version>1.1.32</version>
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +0200225 <scope>test</scope>
226 </dependency>
xg353y2136b612017-02-14 11:44:27 +0100227
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +0200228 <dependency>
229 <groupId>org.openecomp.so</groupId>
230 <artifactId>mso-catalog-db</artifactId>
231 <version>${project.version}</version>
232 <scope>test</scope>
233 </dependency>
234 <!-- FOR JMETER -->
235 <dependency>
236 <groupId>org.apache.jmeter</groupId>
237 <artifactId>ApacheJMeter_core</artifactId>
238 <version>2.13</version>
xg353y2136b612017-02-14 11:44:27 +0100239
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +0200240 <scope>test</scope>
241 <exclusions>
242 <exclusion>
243 <artifactId>commons-math3</artifactId>
244 <groupId>commons-math3</groupId>
245 </exclusion>
246 <exclusion>
247 <artifactId>commons-pool2</artifactId>
248 <groupId>commons-pool2</groupId>
249 </exclusion>
250 </exclusions>
251 </dependency>
xg353y2136b612017-02-14 11:44:27 +0100252
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +0200253 <dependency>
254 <groupId>org.apache.jmeter</groupId>
255 <artifactId>ApacheJMeter_http</artifactId>
256 <version>2.13</version>
xg353y2136b612017-02-14 11:44:27 +0100257
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +0200258 <scope>test</scope>
259 <exclusions>
260 <exclusion>
261 <artifactId>commons-math3</artifactId>
262 <groupId>commons-math3</groupId>
263 </exclusion>
264 <exclusion>
265 <artifactId>commons-pool2</artifactId>
266 <groupId>commons-pool2</groupId>
267 </exclusion>
268 </exclusions>
269 </dependency>
xg353y2136b612017-02-14 11:44:27 +0100270
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +0200271 <dependency>
272 <groupId>org.apache.jmeter</groupId>
273 <artifactId>ApacheJMeter_jdbc</artifactId>
274 <version>2.13</version>
xg353y2136b612017-02-14 11:44:27 +0100275
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +0200276 <scope>test</scope>
277 <exclusions>
278 <exclusion>
279 <artifactId>commons-math3</artifactId>
280 <groupId>commons-math3</groupId>
281 </exclusion>
282 <exclusion>
283 <artifactId>commons-pool2</artifactId>
284 <groupId>commons-pool2</groupId>
285 </exclusion>
286 </exclusions>
287 </dependency>
xg353y2136b612017-02-14 11:44:27 +0100288
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +0200289 <!-- END FOR JMETER -->
290 </dependencies>
xg353y2136b612017-02-14 11:44:27 +0100291
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +0200292 <build>
293 <finalName>arquillian-tests</finalName>
294 <plugins>
295 <plugin>
296 <groupId>org.codehaus.groovy.maven</groupId>
297 <artifactId>gmaven-plugin</artifactId>
298 <executions>
299 <execution>
300 <phase>generate-resources</phase>
301 <goals>
302 <goal>execute</goal>
303 </goals>
304 <configuration>
ChrisC025301d2017-01-31 11:40:03 +0100305 <source>
306 if ( project.properties['docker.host'] != null ) {
307 project.properties['docker.host.truncated']=project.properties['docker.host'].replaceFirst("^(http://|https://)","");
308 int indexPort = project.properties['docker.host.truncated'].indexOf(":");
309 project.properties['docker.host.truncated']=project.properties['docker.host.truncated'].substring(0,indexPort);
310 println 'docker.host.truncated:'+ project.properties['docker.host.truncated'];
311 } else {
312 project.properties['docker.host.truncated']="127.0.0.1";
313 project.properties['docker.host']="unix:///var/run/docker.sock"
314 }
xg353y2136b612017-02-14 11:44:27 +0100315
ChrisC025301d2017-01-31 11:40:03 +0100316 if ( project.properties['mso.project.version'].endsWith("-SNAPSHOT") ) {
317 project.properties['mso.version']="latest";
318 } else {
319 project.properties['mso.version']=project.properties['mso.project.version'];
xg353y2136b612017-02-14 11:44:27 +0100320 }
ChrisC025301d2017-01-31 11:40:03 +0100321 </source>
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +0200322 </configuration>
323 </execution>
324 </executions>
325 </plugin>
ChrisC025301d2017-01-31 11:40:03 +0100326
xg353yb6b7bef2017-04-11 13:30:42 +0200327
seshukmd5e7ab82017-11-03 18:34:29 +0530328 <!-- <plugin>
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +0200329 <groupId>org.codehaus.mojo</groupId>
330 <artifactId>wagon-maven-plugin</artifactId>
331 <version>1.0</version>
332 <executions>
333 <execution>
334 <id>download-mariadb-connector</id>
335 <phase>pre-integration-test</phase>
336 <goals>
337 <goal>download-single</goal>
338 </goals>
339 <configuration>
340 <url>http://central.maven.org/</url>
341 <fromFile>maven2/org/mariadb/jdbc/mariadb-java-client/1.5.4/mariadb-java-client-1.5.4.jar</fromFile>
342 <toDir>${project.build.directory}/mariadb-connector</toDir>
343 </configuration>
344 </execution>
345 </executions>
seshukmd5e7ab82017-11-03 18:34:29 +0530346 </plugin> -->
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +0200347 <plugin>
348 <groupId>org.apache.maven.plugins</groupId>
349 <artifactId>maven-failsafe-plugin</artifactId>
350 <version>2.16</version>
ChrisC025301d2017-01-31 11:40:03 +0100351
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +0200352 <executions>
353 <execution>
354 <goals>
355 <goal>integration-test</goal>
356 <goal>verify</goal>
357 </goals>
358 <configuration>
359 <skipAfterFailureCount>1</skipAfterFailureCount>
360 </configuration>
361 </execution>
362 </executions>
xg353y2136b612017-02-14 11:44:27 +0100363
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +0200364 <configuration>
365 <systemPropertyVariables>
366 <arquillian.launch>${container-to-start}</arquillian.launch>
367 <target.folder>${project.build.directory}</target.folder>
368 <docker.url>${docker.host}</docker.url>
369 <docker.hostname>${docker.host.truncated}</docker.hostname>
370 <images.version>${mso.version}</images.version>
371 </systemPropertyVariables>
372 <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
373 <testFailureIgnore>true</testFailureIgnore>
374 <includes>
375 <include>${it-suite-to-execute}</include>
376 </includes>
377 </configuration>
378 </plugin>
ChrisC025301d2017-01-31 11:40:03 +0100379
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +0200380 <plugin>
381 <groupId>org.apache.maven.plugins</groupId>
382 <artifactId>maven-surefire-plugin</artifactId>
ChrisC025301d2017-01-31 11:40:03 +0100383
Determe, Sebastien (sd378r)5c53fcf2017-10-02 13:09:14 +0200384 <configuration>
385 <skipTests>true</skipTests>
386 </configuration>
387 </plugin>
388 </plugins>
389 </build>
ChrisC025301d2017-01-31 11:40:03 +0100390
391</project>