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