22ffc2548cbbbc908353b43bef10eb826a1a313c
[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.5.1-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>junit</groupId>
174                         <artifactId>junit</artifactId>
175                         <version>${junit.version}</version>
176                         <scope>compile</scope>
177                 </dependency>
178
179                 <dependency>
180                         <groupId>org.testng</groupId>
181                         <artifactId>testng</artifactId>
182                         <version>6.11</version>
183                         <scope>compile</scope>
184                 </dependency>
185
186                 <dependency>
187                         <groupId>xml-apis</groupId>
188                         <artifactId>xml-apis</artifactId>
189                         <version>1.4.01</version>
190                         <scope>compile</scope>
191                 </dependency>
192
193                 <dependency>
194                         <groupId>com.googlecode.json-simple</groupId>
195                         <artifactId>json-simple</artifactId>
196                         <version>${json-simple.version}</version>
197                         <scope>compile</scope>
198                 </dependency>
199
200                 <dependency>
201                         <groupId>org.apache.commons</groupId>
202                         <artifactId>commons-jci-core</artifactId>
203                         <version>${commons-jci-core.version}</version>
204                         <scope>compile</scope>
205                 </dependency>
206
207                 <dependency>
208                         <groupId>commons-codec</groupId>
209                         <artifactId>commons-codec</artifactId>
210                         <version>${commons-codec}</version>
211                         <scope>compile</scope>
212                 </dependency>
213
214                 <dependency>
215                         <groupId>com.aventstack</groupId>
216                         <artifactId>extentreports</artifactId>
217                         <version>3.0.6</version>
218                         <scope>compile</scope>
219                 </dependency>
220
221                 <dependency>
222                         <groupId>net.lightbody.bmp</groupId>
223                         <!-- To use the legacy, Jetty-based implementation, change the artifactId
224                                 to browsermob-core -->
225                         <artifactId>browsermob-core</artifactId>
226                         <version>2.1.4</version>
227                 </dependency>
228
229                 <dependency>
230                         <groupId>com.github.markusbernhardt</groupId>
231                         <artifactId>proxy-vole</artifactId>
232                         <version>1.0.2</version>
233                 </dependency>
234
235                 <dependency>
236                         <groupId>com.paulhammant</groupId>
237                         <artifactId>ngwebdriver</artifactId>
238                         <version>0.9.7</version>
239                         <scope>compile</scope>
240                 </dependency>
241
242                 <dependency>
243                         <groupId>com.google.inject</groupId>
244                         <artifactId>guice</artifactId>
245                         <version>4.1.0</version>
246                 </dependency>
247
248                 <dependency>
249                         <groupId>org.codehaus.groovy</groupId>
250                         <artifactId>groovy</artifactId>
251                 </dependency>
252
253                 <dependency>
254                         <groupId>io.netty</groupId>
255                         <artifactId>netty-handler</artifactId>
256                 </dependency>
257
258         </dependencies>
259
260         <build>
261
262                 <plugins>
263
264                         <plugin>
265                                 <groupId>org.apache.maven.plugins</groupId>
266                                 <artifactId>maven-clean-plugin</artifactId>
267                                 <executions>
268                                         <execution>
269                                                 <id>clean.tosca.chef.os.folder</id>
270                                                 <phase>clean</phase>
271                                                 <goals>
272                                                         <goal>clean</goal>
273                                                 </goals>
274                                                 <configuration>
275                                                         <filesets>
276
277                                                                 <!-- Sanity jar -->
278                                                                 <fileset>
279                                                                         <directory>${project.basedir}/sdc-ui-tests</directory>
280                                                                         <followSymlinks>false</followSymlinks>
281                                                                         <includes>
282                                                                                 <include>*.jar</include>
283                                                                         </includes>
284                                                                 </fileset>
285                                                                 <!-- Sanity test suites -->
286                                                                 <fileset>
287                                                                         <directory>${project.basedir}/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/testSuites</directory>
288                                                                         <followSymlinks>false</followSymlinks>
289                                                                 </fileset>
290                                                                 <!-- VNF files -->
291                                                                 <fileset>
292                                                                         <directory>${project.basedir}/sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/Files/VNFs</directory>
293                                                                         <followSymlinks>false</followSymlinks>
294                                                                 </fileset>
295                                                         </filesets>
296                                                 </configuration>
297                                         </execution>
298                                 </executions>
299                         </plugin>
300                         <plugin>
301                                 <groupId>org.apache.maven.plugins</groupId>
302                                 <artifactId>maven-deploy-plugin</artifactId>
303                                 <configuration>
304                                         <skip>true</skip>
305                                 </configuration>
306                         </plugin>
307                         <plugin>
308                                 <groupId>org.apache.maven.plugins</groupId>
309                                 <artifactId>maven-assembly-plugin</artifactId>
310                                 <executions>
311                                         <execution>
312                                                 <id>create.jar.with.dependencies</id>
313                                                 <phase>package</phase>
314                                                 <goals>
315                                                         <goal>single</goal>
316                                                 </goals>
317                                                 <configuration>
318                                                         <archive>
319                                                                 <manifest>
320                                                                         <mainClass>org.openecomp.sdc.ci.tests.execute.setup.SetupCDTest</mainClass>
321                                                                 </manifest>
322                                                         </archive>
323                                                         <descriptorRefs>
324                                                                 <descriptorRef>jar-with-dependencies</descriptorRef>
325                                                         </descriptorRefs>
326                                                 </configuration>
327                                         </execution>
328                                 </executions>
329                         </plugin>
330                         <plugin>
331                                 <groupId>com.github.sylvainlaurent.maven</groupId>
332                                 <artifactId>yaml-json-validator-maven-plugin</artifactId>
333                                 <executions>
334                                         <execution>
335                                                 <id>validate</id>
336                                                 <phase>validate</phase>
337                                                 <goals>
338                                                         <goal>validate</goal>
339                                                 </goals>
340                                                 <configuration>
341                                                         <validationSets>
342                                                                 <validationSet>
343                                                                         <includes>
344                                                                                 <include>src/main/resources/**/*.y*ml</include>
345                                                                                 <include>src/test/resources/**/*.y*ml</include>
346                                                                         </includes>
347                                                                 </validationSet>
348                                                                 <validationSet>
349                                                                         <includes>
350                                                                                 <include>src/main/resources/**/*.json</include>
351                                                                                 <include>src/test/resources/**/*.json</include>
352                                                                         </includes>
353                                                                 </validationSet>
354                                                         </validationSets>
355                                                 </configuration>
356                                         </execution>
357                                 </executions>
358                         </plugin>
359                 </plugins>
360         </build>
361         <profiles>
362                 <profile>
363                         <id>docker</id>
364                         <activation>
365                                 <activeByDefault>false</activeByDefault>
366                         </activation>
367                         <build>
368                                 <plugins>
369                                         <plugin>
370                                                 <groupId>org.apache.maven.plugins</groupId>
371                                                 <artifactId>maven-resources-plugin</artifactId>
372                                                 <executions>
373                                                         <execution>
374                                                                 <id>copy-tests-suites</id>
375                                                                 <phase>verify</phase>
376                                                                 <goals>
377                                                                         <goal>copy-resources</goal>
378                                                                 </goals>
379                                                                 <configuration>
380                                                                         <outputDirectory>sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/testSuites</outputDirectory>
381                                                                         <resources>
382                                                                                 <resource>
383                                                                                         <directory>${project.parent.basedir}/ui-ci/src/main/resources/ci/testSuites</directory>
384                                                                                         <includes>
385                                                                                                 <include>*</include>
386                                                                                         </includes>
387                                                                                 </resource>
388                                                                         </resources>
389                                                                 </configuration>
390                                                         </execution>
391
392                                                         <execution>
393                                                                 <id>copy-csar-files</id>
394                                                                 <phase>verify</phase>
395                                                                 <goals>
396                                                                         <goal>copy-resources</goal>
397                                                                 </goals>
398                                                                 <configuration>
399                                                                         <outputDirectory>sdc-ui-tests/chef-repo/cookbooks/sdc-ui-tests/files/default/Files/VNFs</outputDirectory>
400                                                                         <resources>
401                                                                                 <resource>
402                                                                                         <directory>${project.parent.basedir}/test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/Files/VNFs</directory>
403                                                                                         <includes>
404                                                                                                 <include>*</include>
405                                                                                         </includes>
406                                                                                 </resource>
407                                                                         </resources>
408                                                                 </configuration>
409                                                         </execution>
410
411                                                         <execution>
412                                                                 <id>copy-resources-ui-ci</id>
413                                                                 <phase>verify</phase>
414                                                                 <goals>
415                                                                         <goal>copy-resources</goal>
416                                                                 </goals>
417                                                                 <configuration>
418                                                                         <outputDirectory>${basedir}/sdc-ui-tests</outputDirectory>
419                                                                         <resources>
420                                                                                 <resource>
421                                                                                         <directory>${project.parent.basedir}/ui-ci/target</directory>
422                                                                                         <includes>
423                                                                                                 <include>ui-ci-${project.version}-jar-with-dependencies.jar</include>
424                                                                                         </includes>
425                                                                                 </resource>
426                                                                         </resources>
427                                                                 </configuration>
428                                                         </execution>
429                                                 </executions>
430                                         </plugin>
431
432                                         <plugin>
433                                                 <groupId>io.fabric8</groupId>
434                                                 <artifactId>docker-maven-plugin</artifactId>
435                                                 <configuration>
436                                                         <apiVersion>1.23</apiVersion>
437                                                         <registry>nexus3.onap.org:10001</registry>
438                                                         <authConfig>
439                                                                 <pull>
440                                                                         <username>docker</username>
441                                                                         <password>docker</password>
442                                                                 </pull>
443                                                         </authConfig>
444                                                         <images>
445
446                                                                 <!-- Build sanity image -->
447                                                                 <image>
448                                                                         <name>onap/sdc-ui-tests</name>
449                                                                         <alias>sdc-ui-sanity</alias>
450                                                                         <build>
451                                                                                 <cleanup>try</cleanup>
452                                                                                 <dockerFileDir>${project.basedir}/sdc-ui-tests</dockerFileDir>
453                                                                                 <tags>
454                                                                                         <tag>${docker.tag}</tag>
455                                                                                         <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
456                                                                                 </tags>
457                                                                         </build>
458                                                                 </image>
459
460                                                         </images>
461                                                 </configuration>
462                                                 <executions>
463                                                         <execution>
464                                                                 <id>clean-images</id>
465                                                                 <phase>pre-clean</phase>
466                                                                 <goals>
467                                                                         <goal>remove</goal>
468                                                                 </goals>
469                                                                 <configuration>
470                                                                         <removeAll>true</removeAll>
471                                                                         <image>onap/sdc-ui-tests</image>
472                                                                 </configuration>
473                                                         </execution>
474
475                                                         <execution>
476                                                                 <id>generate-images</id>
477                                                                 <phase>install</phase>
478                                                                 <goals>
479                                                                         <goal>build</goal>
480                                                                 </goals>
481                                                         </execution>
482
483                                                         <execution>
484                                                                 <id>push-images</id>
485                                                                 <phase>deploy</phase>
486                                                                 <goals>
487                                                                         <goal>push</goal>
488                                                                 </goals>
489                                                                 <configuration>
490                                                                         <image>onap/sdc-ui-tests</image>
491                                                                 </configuration>
492                                                         </execution>
493                                                 </executions>
494                                         </plugin>
495                                 </plugins>
496                         </build>
497                 </profile>
498         </profiles>
499 </project>