[MSO-8] Update the maven dependency
[so.git] / packages / arquillian-unit-tests / pom.xml
1 <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>
5                 <groupId>org.openecomp.mso</groupId>
6                 <artifactId>packages</artifactId>
7                 <version>1.1.0-SNAPSHOT</version>
8         </parent>
9
10         <groupId>org.openecomp.mso.packages</groupId>
11         <name>Arquillian Unit Testing on MSO</name>
12         <artifactId>arquillian-unit-tests</artifactId>
13
14         <packaging>jar</packaging>
15
16         <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>
28
29     </profiles>
30
31
32         <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>
41
42                         <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>
48
49                         </dependency>
50
51                 </dependencies>
52
53
54         </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>
65
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>-->
79
80         <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>
86
87                 <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>
93
94                 <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>
100
101                 <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>
114
115                 <!-- FOR DOCKER CONTROLLED BY ARQUILLIAN-->
116                 <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>
129
130                 <!-- <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> -->
136
137
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>
190
191         <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>
198
199         <dependency>
200                 <groupId>org.seleniumhq.selenium</groupId>
201                 <artifactId>selenium-java</artifactId>
202                 <version>2.45.0</version>
203                 <scope>test</scope>
204                 </dependency>
205                 <dependency>
206                     <groupId>org.seleniumhq.selenium</groupId>
207                     <artifactId>selenium-firefox-driver</artifactId>
208                     <version>2.45.0</version>
209                     <scope>test</scope>
210                 </dependency>
211                 <dependency>
212                         <groupId>org.seleniumhq.selenium</groupId>
213                     <artifactId>selenium-server</artifactId>
214                     <version>2.45.0</version>
215                     <scope>test</scope>
216                 </dependency>
217
218                 <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>
226
227                 <dependency>
228                         <groupId>org.openecomp.mso</groupId>
229                         <artifactId>asdc-controller</artifactId>
230                         <version>${project.version}</version>
231                         <scope>test</scope>
232                         <classifier>classes</classifier>
233                 </dependency>
234
235                 <!-- <dependency>
236             <groupId>org.openecomp.mso.adapters</groupId>
237             <artifactId>mso-appc-adapter</artifactId>
238             <version>${project.version}</version>
239             <scope>test</scope>
240             <classifier>classes</classifier>
241         </dependency> -->
242
243                 <dependency>
244                         <groupId>org.mockito</groupId>
245                         <artifactId>mockito-all</artifactId>
246                         <version>1.10.19</version>
247                         <scope>test</scope>
248                 </dependency>
249
250                 <dependency>
251                         <groupId>org.openecomp.sdc.sdc-distribution-client</groupId>
252             <artifactId>sdc-distribution-client</artifactId>
253             <version>1.1.6-SNAPSHOT</version>
254                         <scope>test</scope>
255                 </dependency>
256
257                 <dependency>
258                         <groupId>org.openecomp.mso</groupId>
259                         <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>
268
269                         <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>
281
282                 <dependency>
283                         <groupId>org.apache.jmeter</groupId>
284                         <artifactId>ApacheJMeter_http</artifactId>
285                         <version>2.13</version>
286
287                         <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>
299
300                 <dependency>
301                         <groupId>org.apache.jmeter</groupId>
302                         <artifactId>ApacheJMeter_jdbc</artifactId>
303                         <version>2.13</version>
304
305                         <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>
317
318                 <!-- 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                                         }
344
345                                         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'];
349                                         }
350                                   </source>
351                                 </configuration>
352                               </execution>
353                           </executions>
354                         </plugin>
355
356
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>
376                         <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>
387                                         </execution>
388                                 </executions>
389
390                                 <configuration>
391                                         <systemPropertyVariables>
392                                                 <arquillian.launch>${container-to-start}</arquillian.launch>
393                                                 <target.folder>${project.build.directory}</target.folder>
394                                                 <docker.url>${docker.host}</docker.url>
395                                                 <docker.hostname>${docker.host.truncated}</docker.hostname>
396                                                 <images.version>${mso.version}</images.version>
397                                         </systemPropertyVariables>
398                                         <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
399                                         <testFailureIgnore>true</testFailureIgnore>
400                                         <includes>
401                                                 <include>${it-suite-to-execute}</include>
402                                         </includes>
403                                 </configuration>
404                         </plugin>
405
406                         <plugin>
407                                 <groupId>org.apache.maven.plugins</groupId>
408                                 <artifactId>maven-surefire-plugin</artifactId>
409
410                                 <configuration>
411                                         <skipTests>true</skipTests>
412                                 </configuration>
413                         </plugin>
414                 </plugins>
415         </build>
416
417 </project>