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