Prepare for Junit5
[sdc.git] / ui-ci / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0"
2   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4
5   <modelVersion>4.0.0</modelVersion>
6
7   <artifactId>ui-ci</artifactId>
8   <description>Selenium tests for the SDnC Application</description>
9
10   <parent>
11     <groupId>org.openecomp.sdc</groupId>
12     <artifactId>sdc-main</artifactId>
13     <version>1.7.0-SNAPSHOT</version>
14   </parent>
15
16   <properties>
17     <sonar.skip>true</sonar.skip>
18     <jacoco.skip>true</jacoco.skip>
19     <aspectj.version>1.8.10</aspectj.version>
20   </properties>
21
22   <dependencies>
23     <!--JUnit Jupiter Engine to depend on the JUnit5 engine and JUnit 5 API -->
24     <dependency>
25       <groupId>org.junit.jupiter</groupId>
26       <artifactId>junit-jupiter-engine</artifactId>
27       <version>${junitJupiter.version}</version>
28       <scope>test</scope>
29     </dependency>
30     <!--JUnit Jupiter Engine to depend on the JUnit4 engine and JUnit 4 API  -->
31     <dependency>
32       <groupId>org.junit.vintage</groupId>
33       <artifactId>junit-vintage-engine</artifactId>
34       <version>${junitJupiter.version}</version>
35     </dependency>
36
37     <dependency>
38       <groupId>com.google.guava</groupId>
39       <artifactId>guava</artifactId>
40       <version>${guava.version}</version>
41       <scope>compile</scope>
42     </dependency>
43
44     <dependency>
45       <groupId>org.seleniumhq.selenium</groupId>
46       <artifactId>selenium-java</artifactId>
47
48       <version>2.53.1</version>
49       <exclusions>
50         <exclusion>
51           <groupId>org.eclipse.jetty</groupId>
52           <artifactId>jetty-util</artifactId>
53         </exclusion>
54         <exclusion>
55           <groupId>io.netty</groupId>
56           <artifactId>netty</artifactId>
57         </exclusion>
58       </exclusions>
59     </dependency>
60
61     <dependency>
62       <groupId>org.eclipse.jetty</groupId>
63       <artifactId>jetty-util</artifactId>
64       <version>${jetty.version}</version>
65     </dependency>
66
67     <dependency>
68       <groupId>org.seleniumhq.selenium</groupId>
69       <artifactId>selenium-server</artifactId>
70       <version>2.53.1</version>
71       <scope>runtime</scope>
72     </dependency>
73
74     <dependency>
75       <groupId>commons-net</groupId>
76       <artifactId>commons-net</artifactId>
77       <version>3.3</version>
78       <scope>compile</scope>
79     </dependency>
80
81     <dependency>
82       <groupId>commons-io</groupId>
83       <artifactId>commons-io</artifactId>
84       <version>2.4</version>
85       <scope>compile</scope>
86     </dependency>
87
88     <dependency>
89       <groupId>org.openecomp.sdc</groupId>
90       <artifactId>test-apis-ci</artifactId>
91       <version>${project.version}</version>
92       <scope>compile</scope>
93     </dependency>
94
95     <dependency>
96       <groupId>org.yaml</groupId>
97       <artifactId>snakeyaml</artifactId>
98       <version>${snakeyaml.version}</version>
99       <scope>compile</scope>
100     </dependency>
101     <dependency>
102       <groupId>org.functionaljava</groupId>
103       <artifactId>functionaljava</artifactId>
104       <version>${functionaljava.version}</version>
105       <scope>compile</scope>
106     </dependency>
107
108     <dependency>
109       <groupId>com.google.code.gson</groupId>
110       <artifactId>gson</artifactId>
111       <version>${gson.version}</version>
112       <scope>compile</scope>
113     </dependency>
114
115     <!-- http client -->
116     <dependency>
117       <groupId>org.apache.httpcomponents</groupId>
118       <artifactId>httpclient</artifactId>
119       <version>${httpclient.version}</version>
120       <scope>compile</scope>
121     </dependency>
122
123     <dependency>
124       <groupId>org.apache.httpcomponents</groupId>
125       <artifactId>httpmime</artifactId>
126       <version>${httpclient.version}</version>
127       <scope>compile</scope>
128     </dependency>
129
130     <dependency>
131       <groupId>commons-logging</groupId>
132       <artifactId>commons-logging</artifactId>
133       <version>${commons-logging}</version>
134       <scope>compile</scope>
135     </dependency>
136
137     <dependency>
138       <groupId>org.slf4j</groupId>
139       <artifactId>slf4j-api</artifactId>
140       <version>${slf4j-api.version}</version>
141       <scope>compile</scope>
142     </dependency>
143
144     <dependency>
145       <groupId>ch.qos.logback</groupId>
146       <artifactId>logback-classic</artifactId>
147       <version>${logback.version}</version>
148       <scope>compile</scope>
149     </dependency>
150
151     <dependency>
152       <groupId>ch.qos.logback</groupId>
153       <artifactId>logback-core</artifactId>
154       <version>${logback.version}</version>
155       <scope>compile</scope>
156     </dependency>
157
158     <!-- http core -->
159     <dependency>
160       <groupId>org.apache.httpcomponents</groupId>
161       <artifactId>httpcore</artifactId>
162       <version>${httpcore.version}</version>
163       <scope>compile</scope>
164     </dependency>
165
166     <dependency>
167       <groupId>org.codehaus.jackson</groupId>
168       <artifactId>jackson-mapper-asl</artifactId>
169       <version>1.9.2</version>
170       <scope>compile</scope>
171     </dependency>
172
173     <dependency>
174       <groupId>com.fasterxml.jackson.core</groupId>
175       <artifactId>jackson-databind</artifactId>
176       <version>${jackson.version}</version>
177       <scope>compile</scope>
178     </dependency>
179
180     <dependency>
181       <groupId>org.openecomp.sdc.sdc-distribution-client</groupId>
182       <artifactId>sdc-distribution-client</artifactId>
183       <version>1.2.3</version>
184       <scope>compile</scope>
185     </dependency>
186
187     <dependency>
188       <groupId>org.hamcrest</groupId>
189       <artifactId>hamcrest</artifactId>
190       <version>${hamcrest.version}</version>
191       <scope>compile</scope>
192     </dependency>
193
194     <dependency>
195       <groupId>org.hamcrest</groupId>
196       <artifactId>hamcrest-library</artifactId>
197       <version>${hamcrest.version}</version>
198       <scope>compile</scope>
199     </dependency>
200
201     <dependency>
202       <groupId>org.junit.jupiter</groupId>
203       <artifactId>junit-jupiter</artifactId>
204       <version>${junitJupiter.version}</version>
205       <scope>test</scope>
206     </dependency>
207
208     <dependency>
209       <groupId>org.mockito</groupId>
210       <artifactId>mockito-junit-jupiter</artifactId>
211       <version>${mockitoJupiter.version}</version>
212       <scope>test</scope>
213     </dependency>
214
215     <dependency>
216       <groupId>org.testng</groupId>
217       <artifactId>testng</artifactId>
218       <version>6.11</version>
219       <scope>compile</scope>
220     </dependency>
221
222     <dependency>
223       <groupId>xml-apis</groupId>
224       <artifactId>xml-apis</artifactId>
225       <version>1.4.01</version>
226       <scope>compile</scope>
227     </dependency>
228
229     <dependency>
230       <groupId>com.googlecode.json-simple</groupId>
231       <artifactId>json-simple</artifactId>
232       <version>${json-simple.version}</version>
233       <scope>compile</scope>
234     </dependency>
235
236     <dependency>
237       <groupId>org.apache.commons</groupId>
238       <artifactId>commons-jci-core</artifactId>
239       <version>${commons-jci-core.version}</version>
240       <scope>compile</scope>
241     </dependency>
242
243     <dependency>
244       <groupId>commons-codec</groupId>
245       <artifactId>commons-codec</artifactId>
246       <version>${commons-codec}</version>
247       <scope>compile</scope>
248     </dependency>
249
250     <dependency>
251       <groupId>com.aventstack</groupId>
252       <artifactId>extentreports</artifactId>
253       <version>3.0.6</version>
254       <scope>compile</scope>
255     </dependency>
256
257     <dependency>
258       <groupId>net.lightbody.bmp</groupId>
259       <!-- To use the legacy, Jetty-based implementation, change the artifactId
260         to browsermob-core -->
261       <artifactId>browsermob-core</artifactId>
262       <version>2.1.4</version>
263     </dependency>
264
265     <dependency>
266       <groupId>com.github.markusbernhardt</groupId>
267       <artifactId>proxy-vole</artifactId>
268       <version>1.0.2</version>
269     </dependency>
270
271     <dependency>
272       <groupId>com.paulhammant</groupId>
273       <artifactId>ngwebdriver</artifactId>
274       <version>0.9.7</version>
275       <scope>compile</scope>
276     </dependency>
277
278     <dependency>
279       <groupId>com.google.inject</groupId>
280       <artifactId>guice</artifactId>
281       <version>4.1.0</version>
282     </dependency>
283
284     <dependency>
285       <groupId>org.codehaus.groovy</groupId>
286       <artifactId>groovy</artifactId>
287     </dependency>
288
289     <dependency>
290       <groupId>io.netty</groupId>
291       <artifactId>netty-handler</artifactId>
292     </dependency>
293
294   </dependencies>
295
296   <build>
297
298     <plugins>
299
300       <plugin>
301         <groupId>org.apache.maven.plugins</groupId>
302         <artifactId>maven-clean-plugin</artifactId>
303         <executions>
304           <execution>
305             <id>clean.tosca.chef.os.folder</id>
306             <phase>clean</phase>
307             <goals>
308               <goal>clean</goal>
309             </goals>
310             <configuration>
311               <filesets>
312
313                 <!-- Sanity jar -->
314                 <fileset>
315                   <directory>${project.basedir}/sdc-ui-tests</directory>
316                   <followSymlinks>false</followSymlinks>
317                   <includes>
318                     <include>*.jar</include>
319                   </includes>
320                 </fileset>
321                 <!-- Sanity test suites -->
322                 <fileset>
323                   <directory>
324                     ${project.basedir}/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/testSuites
325                   </directory>
326                   <followSymlinks>false</followSymlinks>
327                 </fileset>
328                 <!-- Package files -->
329                 <fileset>
330                   <directory>
331                     ${project.basedir}/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/Files
332                   </directory>
333                   <followSymlinks>false</followSymlinks>
334                 </fileset>
335               </filesets>
336             </configuration>
337           </execution>
338         </executions>
339       </plugin>
340       <plugin>
341         <groupId>org.apache.maven.plugins</groupId>
342         <artifactId>maven-deploy-plugin</artifactId>
343         <configuration>
344           <skip>true</skip>
345         </configuration>
346       </plugin>
347       <plugin>
348         <groupId>org.apache.maven.plugins</groupId>
349         <artifactId>maven-assembly-plugin</artifactId>
350         <executions>
351           <execution>
352             <id>create.jar.with.dependencies</id>
353             <phase>package</phase>
354             <goals>
355               <goal>single</goal>
356             </goals>
357             <configuration>
358               <archive>
359                 <manifest>
360                   <mainClass>org.openecomp.sdc.ci.tests.execute.setup.SetupCDTest</mainClass>
361                 </manifest>
362               </archive>
363               <descriptorRefs>
364                 <descriptorRef>jar-with-dependencies</descriptorRef>
365               </descriptorRefs>
366             </configuration>
367           </execution>
368         </executions>
369       </plugin>
370       <plugin>
371         <groupId>com.github.sylvainlaurent.maven</groupId>
372         <artifactId>yaml-json-validator-maven-plugin</artifactId>
373         <executions>
374           <execution>
375             <id>validate</id>
376             <phase>validate</phase>
377             <goals>
378               <goal>validate</goal>
379             </goals>
380             <configuration>
381               <validationSets>
382                 <validationSet>
383                   <includes>
384                     <include>src/main/resources/**/*.y*ml</include>
385                     <include>src/test/resources/**/*.y*ml</include>
386                   </includes>
387                 </validationSet>
388                 <validationSet>
389                   <includes>
390                     <include>src/main/resources/**/*.json</include>
391                     <include>src/test/resources/**/*.json</include>
392                   </includes>
393                 </validationSet>
394               </validationSets>
395             </configuration>
396           </execution>
397         </executions>
398       </plugin>
399     </plugins>
400   </build>
401   <profiles>
402     <profile>
403       <id>docker</id>
404       <activation>
405         <activeByDefault>false</activeByDefault>
406       </activation>
407       <build>
408         <plugins>
409           <plugin>
410             <groupId>org.apache.maven.plugins</groupId>
411             <artifactId>maven-resources-plugin</artifactId>
412             <executions>
413               <execution>
414                 <id>copy-tests-suites</id>
415                 <phase>verify</phase>
416                 <goals>
417                   <goal>copy-resources</goal>
418                 </goals>
419                 <configuration>
420                   <outputDirectory>
421                     sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/testSuites
422                   </outputDirectory>
423                   <resources>
424                     <resource>
425                       <directory>${project.parent.basedir}/ui-ci/src/main/resources/ci/testSuites
426                       </directory>
427                       <includes>
428                         <include>*</include>
429                       </includes>
430                     </resource>
431                   </resources>
432                 </configuration>
433               </execution>
434
435               <execution>
436                 <id>copy-csar-files</id>
437                 <phase>verify</phase>
438                 <goals>
439                   <goal>copy-resources</goal>
440                 </goals>
441                 <configuration>
442                   <outputDirectory>
443                     sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/Files
444                   </outputDirectory>
445                   <resources>
446                     <resource>
447                       <directory>
448                         ${project.parent.basedir}/test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/Files
449                       </directory>
450                       <filtering>false</filtering>
451                       <includes>
452                         <include>VNFs/*</include>
453                         <include>PNFs/*</include>
454                       </includes>
455                     </resource>
456                   </resources>
457                 </configuration>
458               </execution>
459
460               <execution>
461                 <id>copy-resources-ui-ci</id>
462                 <phase>verify</phase>
463                 <goals>
464                   <goal>copy-resources</goal>
465                 </goals>
466                 <configuration>
467                   <outputDirectory>${basedir}/sdc-ui-tests</outputDirectory>
468                   <resources>
469                     <resource>
470                       <directory>${project.parent.basedir}/ui-ci/target</directory>
471                       <includes>
472                         <include>ui-ci-${project.version}-jar-with-dependencies.jar</include>
473                       </includes>
474                     </resource>
475                   </resources>
476                 </configuration>
477               </execution>
478             </executions>
479           </plugin>
480
481           <plugin>
482             <groupId>io.fabric8</groupId>
483             <artifactId>docker-maven-plugin</artifactId>
484             <configuration>
485               <apiVersion>1.23</apiVersion>
486               <registry>nexus3.onap.org:10001</registry>
487               <authConfig>
488                 <pull>
489                   <username>docker</username>
490                   <password>docker</password>
491                 </pull>
492               </authConfig>
493               <images>
494
495                 <!-- Build sanity image -->
496                 <image>
497                   <name>onap/sdc-ui-tests</name>
498                   <alias>sdc-ui-sanity</alias>
499                   <build>
500                     <cleanup>try</cleanup>
501                     <dockerFileDir>${project.basedir}/sdc-ui-tests</dockerFileDir>
502                     <tags>
503                       <tag>${docker.tag}</tag>
504                       <tag>
505                         ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest
506                       </tag>
507                     </tags>
508                   </build>
509                 </image>
510
511               </images>
512             </configuration>
513             <executions>
514               <execution>
515                 <id>clean-images</id>
516                 <phase>pre-clean</phase>
517                 <goals>
518                   <goal>remove</goal>
519                 </goals>
520                 <configuration>
521                   <removeAll>true</removeAll>
522                   <image>onap/sdc-ui-tests</image>
523                 </configuration>
524               </execution>
525
526               <execution>
527                 <id>generate-images</id>
528                 <phase>install</phase>
529                 <goals>
530                   <goal>build</goal>
531                 </goals>
532               </execution>
533
534               <execution>
535                 <id>push-images</id>
536                 <phase>deploy</phase>
537                 <goals>
538                   <goal>push</goal>
539                 </goals>
540                 <configuration>
541                   <image>onap/sdc-ui-tests</image>
542                 </configuration>
543               </execution>
544             </executions>
545           </plugin>
546         </plugins>
547       </build>
548     </profile>
549   </profiles>
550 </project>